openmv/usr/examples/14-WiFi-Shield/fw_update.py
Kwabena W. Agyeman 4c88c110cf 60 Scripts.
Everything except the DAC script works. That has to be fixed. Anyway, we
have a ton of example for launch. So, hopefully, comments about how to
do stuff should be limited.

That said, the PYB module is in a poor state still. Stuff kinda works and
kinda doesn't from it.

One day... There won't be any fires to put out on this project and I can
stop working so hard.
2016-04-21 20:01:17 -04:00

16 lines
454 B
Python

# WINC Firmware Update Script
#
# To start have a successful firmware update create a "firmware" folder on the
# uSD card and but a bin file in it. The firmware update code will load that
# new firmware onto the WINC module.
import network
# Init wlan module in Download mode.
wlan = network.WINC(True)
#print("Firmware version:", wlan.fw_version())
# Start the firmware update process.
wlan.fw_update()
#print("Firmware version:", wlan.fw_version())