Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 39f76bf

Browse files
author
brentru
committedJan 2, 2019
adding particle argon pinouts to simpletest and webclient
1 parent fb4f900 commit 39f76bf

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎examples/espatcontrol_simpletest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,23 @@
1111
print("WiFi settings are kept in settings.py, please add them there!")
1212
raise
1313

14+
# With a Metro or Feather M4
1415
uart = busio.UART(board.TX, board.RX, timeout=0.1)
1516
resetpin = DigitalInOut(board.D5)
1617

18+
# With a Particle Argon
19+
"""
20+
RX = board.ESP_TX
21+
TX = board.ESP_RX
22+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
23+
rtspin = DigitalInOut(board.ESP_CTS)
24+
uart = busio.UART(TX, RX, timeout=0.1)
25+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
26+
from digitalio import Direction
27+
esp_boot.direction = Direction.OUTPUT
28+
esp_boot.value = True
29+
"""
30+
1731
print("ESP AT commands")
1832
esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, run_baudrate=9600,
1933
reset_pin=resetpin, debug=False)

‎examples/espatcontrol_webclient.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,20 @@
1111
print("WiFi settings are kept in settings.py, please add them there!")
1212
raise
1313

14+
# With a Metro or Feather M4
1415
uart = busio.UART(board.TX, board.RX, timeout=0.1)
1516
resetpin = DigitalInOut(board.D5)
1617

18+
# With a Particle Argon
19+
"""
20+
uart = busio.UART(board.ESP_RX, board.ESP_TX, timeout=0.1)
21+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
22+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
23+
from digitalio import Direction
24+
esp_boot.direction = Direction.OUTPUT
25+
esp_boot.value = True
26+
"""
27+
1728
URL = "http://wifitest.adafruit.com/testwifi/index.html"
1829
print("ESP AT GET URL", URL)
1930

0 commit comments

Comments
 (0)
Please sign in to comment.