We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2c5a85 + cf45af0 commit fb4f900Copy full SHA for fb4f900
examples/espatcontrol_post.py
@@ -16,11 +16,23 @@
16
17
URL = "https://io.adafruit.com/api/v2/webhooks/feed/"+settings['aio_feed_webhook']+"?value="
18
19
+# With a Metro or Feather M4
20
resetpin = DigitalInOut(board.D5)
21
rtspin = DigitalInOut(board.D9)
22
uart = busio.UART(board.TX, board.RX, timeout=0.1)
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
36
37
print("Post to a URL", URL)
38
0 commit comments