MicroPython Cookbook
上QQ阅读APP看书,第一时间看更新

How it works...

By pressing Ctrl + D, the board will enter into auto-reload mode. In this mode, you can open the main.py file in your text editor of choice, and, the moment you save the file, the board detects that a change has happened and performs a soft reboot.

The soft reboot can be seen in the Screen output and then the new version of the code is executed with its output displayed immediately.