This is a project starter for Pico W using MicroPython. It is a simple framework for creating a Pico W project that connect to a Wi-Fi network.
git clone https://github.com/tstenvold/pico-w-mpy-starter
cd pico-w-mpy-starter
Download the latest firmware from the MicroPython website.
Follow the instruction there to install the firmware.
hold down the BOOTSEL button while plugging the board into USB. The uf2 file below should then be copied to the USB mass storage device that appears. Once programming of the new firmware is complete the device will automatically reset and be ready for use
In the pico-w-starter directory create a file named wifi_config.json. This file should contain the following information:
{
"ssid": "your-wifi-ssid",
"password": "your-wifi-password"
}
- ! - Attention - ! -
This file is not included in the repository to prevent users from accidentally committing this file to the repository with their own Wifi information.
You can easily use Thonny to run this project and interact with the Pico W.
Upload the files main.py
, wifi.py
and your wifi_config.json
to root
directory of the Pico W via Thonny.
Now you can plug your Pico W into any power source and the program will run and blink the LED on the Pico W upon successful connection to the Wi-Fi network.
As some of this code is based on the examples from RaspberryPi I've used the same BSD 3-clause license.
Please report any issues or feature requests to github
You can find more information about development on the Pico W from the official sources Getting started with Raspberry Pi Pico and Raspberry Pi Documentation