How to use M5Stack UIFlow And Thonny together to program and diagnose errors.
IntroductionI discovered this quite by accident while trying to work out why my program written in UIFlow wasn't working on my M5StackC's.
Step 1 - Update the firmware on devices.For Best results update to the latest stable firmware version on devices.
Step 2 - Connect Device to UIFlow
You need to follow the instruction on the M5Stack website to connect the device to UIflow.
Step 3 - Load Thonny
Download Thonny from the site and install. Once done, open Thonny and go to Run > Select interpreter.
In the pop up window:
Click on the arrow to the right of the box under "Which Interpreter...." and chose "Micropython(ESP32)" And set the port to the port that appears when an M5 Product appears and then click on OK.
When you are brought back to the main screen click on the small red "Stop" button and this will show the REPL command prompt.
To prove that REPL is now running on the M5Stack device, press the reset button and the following will be show as the device resets.
And that's it. Thonny is now connected to your M5Stack device over the serial connection and you can now use Thonny to view errors when programming using UIFlow.
If you found this useful, please consider hitting the "Thumbs up" button.
Comments