Skip to content

Commit 3d06504

Browse files
author
brentru
committed
add externally defined pins for breakout, etc
1 parent 011a9d6 commit 3d06504

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/esp32spi_simpletest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
1111
JSON_URL = "http://api.coindesk.com/v1/bpi/currentprice/USD.json"
1212

13+
14+
# If you have an externally connected ESP32:
15+
esp32_cs = DigitalInOut(board.D9)
16+
esp32_ready = DigitalInOut(board.D10)
17+
esp32_reset = DigitalInOut(board.D5)
18+
19+
# If you are using a board with pre-defined ESP32 Pins:
20+
"""
21+
esp32_cs = DigitalInOut(board.ESP_CS)
22+
esp32_ready = DigitalInOut(board.ESP_BUSY)
23+
esp32_reset = DigitalInOut(board.ESP_RESET)
24+
"""
25+
1326
esp32_cs = DigitalInOut(board.ESP_CS)
1427
esp32_ready = DigitalInOut(board.ESP_BUSY)
1528
esp32_reset = DigitalInOut(board.ESP_RESET)

0 commit comments

Comments
 (0)