Skip to content

Commit 60abf21

Browse files
committed
update to pretty board names, dont fail if no timezone
1 parent 6f73a61 commit 60abf21

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

adafruit_pyportal.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,11 @@ def __init__(self, *, url=None, json_path=None, regexp_path=None,
181181
# Make ESP32 connection
182182
if self._debug:
183183
print("Init ESP32")
184-
# pylint: disable=no-member
185-
esp32_cs = DigitalInOut(microcontroller.pin.PB14)
186-
esp32_ready = DigitalInOut(microcontroller.pin.PB16)
187-
esp32_gpio0 = DigitalInOut(microcontroller.pin.PB15)
188-
esp32_reset = DigitalInOut(microcontroller.pin.PB17)
189-
#esp32_ready = DigitalInOut(board.ESP_BUSY)
190-
#esp32_gpio0 = DigitalInOut(board.ESP_GPIO0)
191-
#esp32_reset = DigitalInOut(board.ESP_RESET)
192-
#esp32_cs = DigitalInOut(board.ESP_CS)
184+
esp32_ready = DigitalInOut(board.ESP_BUSY)
185+
esp32_gpio0 = DigitalInOut(board.ESP_GPIO0)
186+
esp32_reset = DigitalInOut(board.ESP_RESET)
187+
esp32_cs = DigitalInOut(board.ESP_CS)
193188
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
194-
# pylint: enable=no-member
195189

196190
if not self._uselocal:
197191
self._esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready,

0 commit comments

Comments
 (0)