Skip to content

Commit fb4f900

Browse files
authored
Merge pull request #15 from brentru/particle-argon-post-example
Add pinout for Particle Argon Boards to Post Example
2 parents a2c5a85 + cf45af0 commit fb4f900

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

examples/espatcontrol_post.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,23 @@
1616

1717
URL = "https://io.adafruit.com/api/v2/webhooks/feed/"+settings['aio_feed_webhook']+"?value="
1818

19+
# With a Metro or Feather M4
1920
resetpin = DigitalInOut(board.D5)
2021
rtspin = DigitalInOut(board.D9)
2122
uart = busio.UART(board.TX, board.RX, timeout=0.1)
2223

23-
24+
# With a Particle Argon
25+
"""
26+
RX = board.ESP_TX
27+
TX = board.ESP_RX
28+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
29+
rtspin = DigitalInOut(board.ESP_CTS)
30+
uart = busio.UART(TX, RX, timeout=0.1)
31+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
32+
from digitalio import Direction
33+
esp_boot.direction = Direction.OUTPUT
34+
esp_boot.value = True
35+
"""
2436

2537
print("Post to a URL", URL)
2638

0 commit comments

Comments
 (0)