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 5353bme280 .iir_filter = adafruit_bme280 .IIR_FILTER_DISABLE
5454bme280 .standby_period = adafruit_bme280 .STANDBY_TC_1000
5555
56-
56+ # set status pixel to yellow
5757status_pixel [0 ] = 0xFFFF00
5858
5959print ("Connecting to AdafruitIO" )
6969wifi .radio .connect (ssid , password )
7070print ("Connected to %s!" % ssid )
7171
72+ # setup socket pool and requests session
7273pool = adafruit_connection_manager .get_radio_socketpool (wifi .radio )
7374ssl_context = adafruit_connection_manager .get_radio_ssl_context (wifi .radio )
7475requests = adafruit_requests .Session (pool , ssl_context )
76+
7577# Initialize an Adafruit IO HTTP API object
7678io = IO_HTTP (aio_username , aio_key , requests )
7779
80+ # set status pixel to green
7881status_pixel [0 ] = 0x00FF00
7982
8083try :
9497 "You must create feeds on AdafruitIO for: temperature, humidity, and pressure"
9598 )
9699
100+ # turn off the neopixel and builtin LED
97101np_power .value = False
98102builtin_led .value = False
99103
You can’t perform that action at this time.
0 commit comments