Updating your Monocle firmware
You can use the Brilliant WebREPL directly from your browser to keep your Monocle up to date.
Firstly, ensure that you’re using a browser that supports Web Bluetooth such as Google Chrome for Desktop, Android Chrome, or Bluefy on iOS.
Next, navigate to the Web REPL at https://repl.brilliant.xyz
Press any key to open the connection dialog box.
Select monocle from the list and hit connect. (Note, if a previous update had failed, you may see DFUTarg in the list. In this case, connect to that instead).
Once connected, check the message at the bottom of the screen. If it says
Connected.that means that you’re already on the latest firmware, if not, you will be prompted that an update is available and you can click the update button to start the update.
If you see a message that the current firmware could not be detected, then you can use the following commands to start the update manually:
import update update.micropython()
Monocle will then restart into the update mode, and you’ll be prompted to reconnect. Press any key to open the connection dialog box again.
Select DFUTarg from the list, and connect.
The firmware update will start and Monocle will reboot. You may need to place your Monocle into the case once the update is complete to reboot it.
That’s it! You’re Monocle should now be up to date. Check it by using the commands below once connected again. The version number should match the latest release on the Monocle MicroPython releases page.
import device device.VERSION