Skip to content

Commit 9a008dc

Browse files
committed
fix spi init
1 parent 452a139 commit 9a008dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_portalbase/wifi_coprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, *, status_led=None, esp=None, external_spi=None):
6363
esp32_gpio0 = DigitalInOut(board.ESP_GPIO0)
6464
esp32_reset = DigitalInOut(board.ESP_RESET)
6565
esp32_cs = DigitalInOut(board.ESP_CS)
66-
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
66+
spi = board.SPI()
6767

6868
self.esp = adafruit_esp32spi.ESP_SPIcontrol(
6969
spi, esp32_cs, esp32_ready, esp32_reset, esp32_gpio0

0 commit comments

Comments
 (0)