Skip to content

Commit d57a99f

Browse files
committed
fixing secrets
1 parent 597e929 commit d57a99f

6 files changed

+57
-9
lines changed

examples/espatcontrol_aio_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88

99
# Get wifi details and more from a secrets.py file
1010
try:
11-
from espatcontorl_secrets import secrets
11+
from secrets import secrets
1212
except ImportError:
1313
print("WiFi secrets are kept in secrets.py, please add them there!")
1414
raise
1515

1616

1717
# With a Metro or Feather M4
1818
resetpin = DigitalInOut(board.D5)
19-
rtspin = DigitalInOut(board.D9)
19+
rtspin = DigitalInOut(board.D6)
2020
uart = busio.UART(board.TX, board.RX, timeout=0.1)
2121

2222
# With a Particle Argon

examples/espatcontrol_cheerlights.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Get wifi details and more from a secrets.py file
1717
try:
18-
from espatcontrol_secrets import secrets
18+
from secrets import secrets
1919
except ImportError:
2020
print("WiFi secrets are kept in secrets.py, please add them there!")
2121
raise
@@ -29,7 +29,23 @@
2929

3030
uart = busio.UART(board.TX, board.RX, timeout=0.1)
3131
resetpin = DigitalInOut(board.D5)
32-
rtspin = DigitalInOut(board.D9)
32+
rtspin = DigitalInOut(board.D6)
33+
34+
35+
# With a Particle Argon
36+
"""
37+
RX = board.ESP_TX
38+
TX = board.ESP_RX
39+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
40+
rtspin = DigitalInOut(board.ESP_CTS)
41+
uart = busio.UART(TX, RX, timeout=0.1)
42+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
43+
from digitalio import Direction
44+
esp_boot.direction = Direction.OUTPUT
45+
esp_boot.value = True
46+
"""
47+
48+
3349

3450
# Create the connection to the co-processor and reset
3551
esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, run_baudrate=460800,

examples/espatcontrol_countviewer.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Get wifi details and more from a secrets.py file
1717
try:
18-
from espatcontrol_secrets import secrets
18+
from secrets import secrets
1919
except ImportError:
2020
print("WiFi secrets are kept in secrets.py, please add them there!")
2121
raise
@@ -58,9 +58,26 @@
5858
#"screen_names=adafruit"
5959
#DATA_LOCATION = [0, "followers_count"]
6060

61+
# on metro_m4
6162
uart = busio.UART(board.TX, board.RX, timeout=0.1)
6263
resetpin = DigitalInOut(board.D5)
63-
rtspin = DigitalInOut(board.D9)
64+
rtspin = DigitalInOut(board.D6)
65+
66+
67+
# With a Particle Argon
68+
"""
69+
RX = board.ESP_TX
70+
TX = board.ESP_RX
71+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
72+
rtspin = DigitalInOut(board.ESP_CTS)
73+
uart = busio.UART(TX, RX, timeout=0.1)
74+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
75+
from digitalio import Direction
76+
esp_boot.direction = Direction.OUTPUT
77+
esp_boot.value = True
78+
"""
79+
80+
6481

6582
# Create the connection to the co-processor and reset
6683
esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, run_baudrate=921600,

examples/espatcontrol_quoteEPD.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Get wifi details and more from a secrets.py file
2323
try:
24-
from espatcontrol_secrets import secrets
24+
from secrets import secrets
2525
except ImportError:
2626
print("WiFi secrets are kept in secrets.py, please add them there!")
2727
raise
@@ -46,6 +46,21 @@
4646
resetpin = DigitalInOut(board.D5)
4747
rtspin = DigitalInOut(board.D6)
4848

49+
50+
# With a Particle Argon
51+
"""
52+
RX = board.ESP_TX
53+
TX = board.ESP_RX
54+
resetpin = DigitalInOut(board.ESP_WIFI_EN)
55+
rtspin = DigitalInOut(board.ESP_CTS)
56+
uart = busio.UART(TX, RX, timeout=0.1)
57+
esp_boot = DigitalInOut(board.ESP_BOOT_MODE)
58+
from digitalio import Direction
59+
esp_boot.direction = Direction.OUTPUT
60+
esp_boot.value = True
61+
"""
62+
63+
4964
# Create the connection to the co-processor and reset
5065
esp = adafruit_espatcontrol.ESP_ATcontrol(uart, 115200, run_baudrate=115200,
5166
reset_pin=resetpin,

examples/espatcontrol_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Get wifi details and more from a secrets.py file
88
try:
9-
from espatcontrol_secrets import secrets
9+
from secrets import secrets
1010
except ImportError:
1111
print("WiFi secrets are kept in secrets.py, please add them there!")
1212
raise

examples/espatcontrol_webclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Get wifi details and more from a secrets.py file
99
try:
10-
from espatcontrol_secrets import secrets
10+
from secrets import secrets
1111
except ImportError:
1212
print("WiFi secrets are kept in secrets.py, please add them there!")
1313
raise

0 commit comments

Comments
 (0)