Skip to content

Commit 0a638c4

Browse files
committed
fixed busio.SPI to board.SPI as per FoamyGuy
note: I don't have code that tests this line, so I can't confirm it. Also, having trouble getting black to run correctly.
1 parent d2f7961 commit 0a638c4

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
if external_spi: # If SPI Object Passed
6464
spi = external_spi
6565
else: # Else: Make ESP32 connection
66-
spi = busio.SPI() # without parameters is forgiving to being called twice
66+
spi = board.SPI() # without parameters is forgiving to being called twice
6767

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

0 commit comments

Comments
 (0)