Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 678 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 678 Bytes

MicroPythonMindReader

Look inside the mind of a running MicroPython program

Thonny screenshot of Mindreader class Add the MindReader class to your program. Then make an instance of the class and call update on the instance at regular intervals (perhaps in in the update loop of your application).

The update method scans the serial port and builds up a command. When you press return it executes the line. This means that you can still type in REPL commands when your code is running, which is neat. You can enter print statements to view variables or even modify them for testing.

It's not pretty, but it works and I find it useful.

Rob Miles