File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
PyPortal/PyPortal_CMA_Art_Frame Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 12
12
WIDTH = board .DISPLAY .width
13
13
HEIGHT = board .DISPLAY .height
14
14
15
- # Get WiFi details, ensure these are setup in settings.toml
15
+ # Get WiFi details and Adafruit IO keys, ensure these are setup in settings.toml
16
+ # (visit io.adafruit.com if you need to create an account, or if you need your Adafruit IO key.)
16
17
ssid = getenv ("CIRCUITPY_WIFI_SSID" )
17
18
password = getenv ("CIRCUITPY_WIFI_PASSWORD" )
19
+ aio_username = getenv ("ADAFRUIT_AIO_USERNAME" )
20
+ aio_key = getenv ("ADAFRUIT_AIO_KEY" )
18
21
19
- if None in [ssid , password ]:
22
+ if None in [ssid , password , aio_username , aio_key ]:
20
23
raise RuntimeError (
21
- "WiFi settings are kept in settings.toml, "
24
+ "WiFi and Adafruit IO settings are kept in settings.toml, "
22
25
"please add them there. The settings file must contain "
23
26
"'CIRCUITPY_WIFI_SSID', 'CIRCUITPY_WIFI_PASSWORD', "
24
- "at a minimum."
27
+ "'ADAFRUIT_AIO_USERNAME' and 'ADAFRUIT_AIO_KEY' at a minimum."
25
28
)
26
29
27
30
#pylint: disable=line-too-long
Original file line number Diff line number Diff line change 7
7
8
8
CIRCUITPY_WIFI_SSID =" your-wifi-ssid"
9
9
CIRCUITPY_WIFI_PASSWORD =" your-wifi-password"
10
+ ADAFRUIT_AIO_USERNAME =" my_username"
11
+ ADAFRUIT_AIO_KEY =" my_key"
12
+ CIRCUITPY_PYSTACK_SIZE =2048
You can’t perform that action at this time.
0 commit comments