Then press enter.
That's all there is to running code in the REPL! Nice job!
You can write single lines of code that run stand-alone. You can also write entire
programs into the REPL to test them. Remember that nothing typed into the REPL is
saved.
There's a lot the REPL can do for you. It's great for testing new ideas if you want to
see if a few new lines of code will work. It's fantastic for troubleshooting code by
entering it one line at a time and finding out where it fails. It lets you see what
modules are available and explore those modules.
Try typing more into the REPL to see what happens!
Everything typed into the REPL is ephemeral. Once you reload the REPL or return
to the serial console, nothing you typed will be retained in any memory space. So
be sure to save any desired code you wrote somewhere else, or you'll lose it
when you leave the current REPL instance!
Returning to the Serial Console
When you're ready to leave the REPL and return to the serial console, simply press CT
RL+D. This will reload your board and reenter the serial console. You will restart the
program you had running before entering the REPL. In the console window, you'll see
any output from the program you had running. And if your program was affecting
anything visual on the board, you'll see that start up again as well.
You can return to the REPL at any time!
©Adafruit Industries
Page 61 of 263
Need help?
Do you have a question about the ESP32-S3 and is the answer not in the manual?