User Tools

Site Tools


pico_wifi_analyzer_-_new_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pico_wifi_analyzer_-_new_code [2026/09/07 18:58] – walkeradminpico_wifi_analyzer_-_new_code [2026/09/07 19:07] (current) – [The New Code] walkeradmin
Line 28: Line 28:
 \\  \\ 
 \\  \\ 
 +Before this version, you had to dig through the Python script to find the SSID details. This was messy and meant someone could accidentally change the Python code and break the project. Now we have a separate file on the Pico called:
  
 +  * wifi_details.json
 +
 +<code:json | download>
 +[
 +    {
 +        "label": "Wifi Network 1 name",
 +        "ssid": "YOUR-SSID",
 +        "password": "YOUR-PASSWORD"
 +    },
 +    {
 +        "label": "Wifi Network 2 name",
 +        "ssid": "YOUR-SSID",
 +        "password": "YOUR-PASSWORD"
 +    }
 +]
 +</code>
 +
 +A user now only needs to edit this file with their Wifi details and our Python script will pull this information from here:
 +\\ 
 +\\ 
 +----
 +==== The New Code ====
 +\\ 
 +You need to download three files for the project to work:
 +
 +  * The driver {{ :st7789nf.zip |st7789nf.py}} (this goes in the lib folder on you Pico)
 +  * The Wifi Details file {{ :wifi_details.zip |wifi_details.json}} (this goes in the root folder of your Pico)
 +  * The Wifi Analyzer Python script {{ :wifianalyzer36.zip |WifiAnalyzer.py}} (this goes in the root folder of your Pico)
 +
 +Remember, if you want to have the code run as soon as you plug the Pico in, save the code (WifiAnalzyer36.py) as main.py.
 +\\ 
 +\\ 
 +----
pico_wifi_analyzer_-_new_code.1788807509.txt.gz · Last modified: by walkeradmin