File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 17
17
raise
18
18
19
19
20
- # With a Particle Argon
21
- RX = board .ESP_TX
22
- TX = board .ESP_RX
23
- resetpin = DigitalInOut (board .WIFI_RESET )
24
- rtspin = DigitalInOut (board .ESP_CTS )
25
- uart = busio .UART (TX , RX , timeout = 0.1 )
26
- esp_boot = DigitalInOut (board .ESP_BOOT_MODE )
27
- esp_boot .direction = Direction .OUTPUT
28
- esp_boot .value = True
20
+ if board .board_id == challenger_rp2040_wifi :
21
+ RX = board .ESP_TX
22
+ TX = board .ESP_RX
23
+ resetpin = DigitalInOut (board .WIFI_RESET )
24
+ rtspin = DigitalInOut (board .ESP_CTS )
25
+ uart = busio .UART (TX , RX , timeout = 0.1 )
26
+ esp_boot = DigitalInOut (board .ESP_BOOT_MODE )
27
+ esp_boot .direction = Direction .OUTPUT
28
+ esp_boot .value = True
29
+ else :
30
+ RX = board .ESP_TX
31
+ TX = board .ESP_RX
32
+ resetpin = DigitalInOut (board .ESP_WIFI_EN )
33
+ rtspin = DigitalInOut (board .ESP_CTS )
34
+ uart = busio .UART (TX , RX , timeout = 0.1 )
35
+ esp_boot = DigitalInOut (board .ESP_BOOT_MODE )
36
+ esp_boot .direction = Direction .OUTPUT
37
+ esp_boot .value = True
29
38
30
39
31
40
print ("ESP AT commands" )
You can’t perform that action at this time.
0 commit comments