MicroPython 1.19 Example Scripts on W600-PICO Board
Source code to accompany A Second Look at the W600-PICO Development Board.
This repository is meant to replace the older w600_micropython_examples repository which used MicroPython version 1.10 that comes preinstalled on the board.
-
Flash the most recent W60X MicroPython port wm_w600_lfs.fls onto the W600-PICO.
-
Copy all the MicroPython scripts (
*.py
) in the src to the W600-PICO flash memory. -
Modify
lib/secrets_template.py
as required to connect to the local Wi-Fi network and save the modified file aslib/secrets.py
. -
Modify
lib/mqtttdata_template.py
as required to use a local MQTT broker and save the modified file aslib/mqttdata.py
. -
Edit
demo.py
to remove scripts if wanted. For example, if a connection to a Wi-Fi network is not possible, then remove theimport customboot
, and then the last three scriptsimport webserver
,import mqtttest
andimport wifiswitch
. If there is no local MQTT broker available, then remove the last two scripts. -
Restart the W600-PICO. The scripts in
demo.py
should all be executed one after the other. It will be necessary to click on theQuit
button in the default web page of thewebserver
to continue on to the last two modules.
Detailed instructions on how to update firmware of the W600-PICO and how to copy files to and from the development board's flash memory are available in A Second Look at the W600-PICO Development Board.
Thanks to the MicroPython team for porting Python 3 to microcontrollers.
Thanks to Robert Mammelrath (robert-hh) et al. for keeping the initial port of MicroPython to the W60X by @wdyichen current and for making the image file available.
Thanks to LexxM3 for information about the newest version of MicroPython of the W60X.
The BSD Zero Clause (SPDX: 0BSD) licence applies to the original code in this repository.
Please respect the licence of each of the libraries used
- micropython-lib/umqtt.simple: MIT
- MicroPython-Button: not defined