Skip to content

Commit 9d3d993

Browse files
author
brentru
committed
add pinout to post example for particle argon boards
1 parent a2c5a85 commit 9d3d993

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/espatcontrol_post.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,21 @@
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+
# RX = board.ESP_TX
26+
# TX = board.ESP_RX
27+
# resetpin = DigitalInOut(board.ESP_WIFI_EN)
28+
# rtspin = DigitalInOut(board.ESP_CTS)
29+
# uart = busio.UART(TX, RX, timeout=0.1)
30+
# esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
31+
# from digitalio import Direction
32+
# esp_boot.direction = Direction.OUTPUT
33+
# esp_boot.value = True
2434

2535
print("Post to a URL", URL)
2636

0 commit comments

Comments
 (0)