From the course: Introduction to MicroPython and Physical Computing

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Use the REPL

Use the REPL

- [Instructor] The Thonny IDE is installed on your computer and you've seen how to connect it to your development board. Now let's go to the desktop to get a little experience using Thonny. Okay, so here's Thonny as we left it. You can see on my computer, it's still connected to my development board. If it's not connected to your board, go down to the lower right corner and make sure to choose your board. And you can see MicroPython is listed here in the Shell window. And this is the interactive window. So we can type in MicroPython commands here. Let's just type in print, hello is always a good choice and it prints out hello. We can also type in an expression and it shows the results. And let's try something else. Let's say type in this. (keyboard clicking) This is just setting up a pin in the microcontroller as an output pin. Remember we talked about GPIO pins as being input or output. This is simply specifying that it's an output pin. Now we can use the on command to turn that pin…

Contents