Skip to content

Commit d7cdb81

Browse files
committed
additional comments
1 parent da3b838 commit d7cdb81

File tree

1 file changed

+5
-1
lines changed
  • Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO

1 file changed

+5
-1
lines changed

Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO/code.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
bme280.iir_filter = adafruit_bme280.IIR_FILTER_DISABLE
5454
bme280.standby_period = adafruit_bme280.STANDBY_TC_1000
5555

56-
56+
# set status pixel to yellow
5757
status_pixel[0] = 0xFFFF00
5858

5959
print("Connecting to AdafruitIO")
@@ -69,12 +69,15 @@
6969
wifi.radio.connect(ssid, password)
7070
print("Connected to %s!" % ssid)
7171

72+
# setup socket pool and requests session
7273
pool = adafruit_connection_manager.get_radio_socketpool(wifi.radio)
7374
ssl_context = adafruit_connection_manager.get_radio_ssl_context(wifi.radio)
7475
requests = adafruit_requests.Session(pool, ssl_context)
76+
7577
# Initialize an Adafruit IO HTTP API object
7678
io = IO_HTTP(aio_username, aio_key, requests)
7779

80+
# set status pixel to green
7881
status_pixel[0] = 0x00FF00
7982

8083
try:
@@ -94,6 +97,7 @@
9497
"You must create feeds on AdafruitIO for: temperature, humidity, and pressure"
9598
)
9699

100+
# turn off the neopixel and builtin LED
97101
np_power.value = False
98102
builtin_led.value = False
99103

0 commit comments

Comments
 (0)