Skip to content

Commit db1d32d

Browse files
author
brentru
committed
flip which is predefined...
1 parent 3d06504 commit db1d32d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/esp32spi_aio_post.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@
1515
print("WiFi secrets are kept in secrets.py, please add them there!")
1616
raise
1717

18-
# for externally connected ESP32
19-
esp32_cs = DigitalInOut(board.D9)
20-
esp32_ready = DigitalInOut(board.D10)
21-
esp32_reset = DigitalInOut(board.D5)
22-
2318
# For PyPortal use
24-
"""
2519
esp32_cs = DigitalInOut(board.ESP_CS)
2620
esp32_ready = DigitalInOut(board.ESP_BUSY)
2721
esp32_reset = DigitalInOut(board.ESP_RESET)
28-
"""
2922

23+
# for externally connected ESP32
24+
"""
25+
esp32_cs = DigitalInOut(board.D9)
26+
esp32_ready = DigitalInOut(board.D10)
27+
esp32_reset = DigitalInOut(board.D5)
28+
"""
3029

3130
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
3231
esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset)

0 commit comments

Comments
 (0)