From afcbc75b0b490f9b672b1fb0f4e96cf898707ccc Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Fri, 11 Oct 2024 14:42:31 +0100 Subject: [PATCH] make examples consistent --- micropython/examples/pico_plus_2_w/astronauts.py | 4 ++-- micropython/examples/pico_plus_2_w/catfacts.py | 4 ++-- micropython/examples/pico_plus_2_w/secrets.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/micropython/examples/pico_plus_2_w/astronauts.py b/micropython/examples/pico_plus_2_w/astronauts.py index f064365..7e7eed8 100644 --- a/micropython/examples/pico_plus_2_w/astronauts.py +++ b/micropython/examples/pico_plus_2_w/astronauts.py @@ -6,13 +6,13 @@ This example was adapted from one written by Les Pounder for Tom's Hardware: htt import network import requests -from secrets import SSID, PASSWORD +from secrets import WIFI_SSID, WIFI_PASSWORD from time import sleep # connect to wifi wlan = network.WLAN(network.STA_IF) wlan.active(True) -wlan.connect(SSID, PASSWORD) +wlan.connect(WIFI_SSID, WIFI_PASSWORD) while wlan.isconnected() is False: print('Waiting for connection...') sleep(1) diff --git a/micropython/examples/pico_plus_2_w/catfacts.py b/micropython/examples/pico_plus_2_w/catfacts.py index 026f188..da61367 100644 --- a/micropython/examples/pico_plus_2_w/catfacts.py +++ b/micropython/examples/pico_plus_2_w/catfacts.py @@ -5,13 +5,13 @@ You will need to add your wireless SSID and password to secrets.py (and save thi import network import requests -from secrets import SSID, PASSWORD +from secrets import WIFI_SSID, WIFI_PASSWORD from time import sleep # connect to wifi wlan = network.WLAN(network.STA_IF) wlan.active(True) -wlan.connect(SSID, PASSWORD) +wlan.connect(WIFI_SSID, WIFI_PASSWORD) while wlan.isconnected() is False: print('Waiting for connection...') sleep(1) diff --git a/micropython/examples/pico_plus_2_w/secrets.py b/micropython/examples/pico_plus_2_w/secrets.py index 6f048a5..1b9c92f 100644 --- a/micropython/examples/pico_plus_2_w/secrets.py +++ b/micropython/examples/pico_plus_2_w/secrets.py @@ -1,2 +1,2 @@ -SSID = 'ssid_goes_here' -PASSWORD = 'password_goes_here' +WIFI_SSID = 'ssid_goes_here' +WIFI_PASSWORD = 'password_goes_here'