Running the script in Listing 2 on the pyboard can be accomplished in just a few easy steps:
- Connect the pyboard to your computer.
- Open your terminal application and connect to the pyboard (refer to the MicroPython documentation | Quick reference for the pyboard | MicroPython tutorial for the pyboard |3. Getting a MicroPython REPL prompt, for details).
- In the terminal, press Ctrl + C to interrupt any currently running scripts.
- Copy the script to the pyboard USB drive.
- Once the red light has turned off, the pyboard flash system will be updated.
- In the terminal, press Ctrl + D to perform a soft reset.