File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Adafruit_Feather_ESP32-S2/CircuitPython_BME280_DeepSleep_AdafruitIO Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 53
53
bme280 .iir_filter = adafruit_bme280 .IIR_FILTER_DISABLE
54
54
bme280 .standby_period = adafruit_bme280 .STANDBY_TC_1000
55
55
56
-
56
+ # set status pixel to yellow
57
57
status_pixel [0 ] = 0xFFFF00
58
58
59
59
print ("Connecting to AdafruitIO" )
69
69
wifi .radio .connect (ssid , password )
70
70
print ("Connected to %s!" % ssid )
71
71
72
+ # setup socket pool and requests session
72
73
pool = adafruit_connection_manager .get_radio_socketpool (wifi .radio )
73
74
ssl_context = adafruit_connection_manager .get_radio_ssl_context (wifi .radio )
74
75
requests = adafruit_requests .Session (pool , ssl_context )
76
+
75
77
# Initialize an Adafruit IO HTTP API object
76
78
io = IO_HTTP (aio_username , aio_key , requests )
77
79
80
+ # set status pixel to green
78
81
status_pixel [0 ] = 0x00FF00
79
82
80
83
try :
94
97
"You must create feeds on AdafruitIO for: temperature, humidity, and pressure"
95
98
)
96
99
100
+ # turn off the neopixel and builtin LED
97
101
np_power .value = False
98
102
builtin_led .value = False
99
103
You can’t perform that action at this time.
0 commit comments