File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change 1414
1515
1616def esp_reset_all ():
17- esp_reset ()
18- esp_debug ()
19- esp_init_pin_modes (ESP_D_R_PIN , ESP_D_W_PIN )
20-
21- def esp_reset (wait = 1 ):
22- """
23- CAUTION this will re-initialize the ESP32 pin modes and debug level
24- """
17+ # esp.reset() will re-initialize the ESP32 pin modes and debug level
2518 esp .reset ()
26- time .sleep (wait )
27-
28- def esp_debug (local = 0 , remote = True ):
29- # ESP32SPI CircuitPython library serial debug on M4 TX
30- esp ._debug = local # 0, 1, 2, 3
31-
32- # NINA serial debug on ESP32 TX
33- esp .set_esp_debug (remote ) # False, True
19+ time .sleep (1 )
20+ # (re-)set NINA serial debug on ESP32 TX
21+ esp .set_esp_debug (True ) # False, True
22+ # (re-)set digital pin modes
23+ esp_init_pin_modes (ESP_D_R_PIN , ESP_D_W_PIN )
3424
3525def esp_init_pin_modes (din , dout ):
3626 # ESP32 Digital Input
You can’t perform that action at this time.
0 commit comments