Skip to content

Commit 6ae0de4

Browse files
committed
Update code.py
1 parent c20d0d6 commit 6ae0de4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • PyPortal_Azure_Plant_Monitor

PyPortal_Azure_Plant_Monitor/code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
esp32_reset = DigitalInOut(board.ESP_RESET)
3939
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
4040
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)
41+
42+
# Set up the WiFi manager with a status light to show the WiFi connection status
4143
status_light = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.2)
4244
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, status_light)
4345
wifi.connect()

0 commit comments

Comments
 (0)