mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 17:06:17 +01:00
* Products
-> updated with new products
-> added accessories
* Getting started
-> re-structured getting started guide
-> removed some of the advanced stuff
* Tutorials / Examples
-> added categories
-> added new basic tutorials Sleep, GPIO and Pring
-> added WiFi ap / sta tutorial
-> added wifi Scan MAC tutorial
* Firmware API
-> added pysense pytrack pygate categories here
* Datasheets
-> added CE FCC and RoHS documents
-> added pysense2 and pytrack 2 templates
* Update firmware
-> new section, added all methods of updating the firmware
* License
-> put license in its own section
general remarks:
-> updated the layout / theme
no more red code text
codeblocks actually work now
-> general layout updates, removed the old html structures (mostly)
1.4 KiB
1.4 KiB
title, aliases
| title | aliases |
|---|---|
| REPL |
REPL stands for Read Evaluate Print Loop, and is the name given to the interactive MicroPython prompt that is accessible on the Pycom devices. Using the REPL is by far the easiest way to test out Python code and run commands. You can use the REPL in addition to writing scripts in main.py.
The following pages will explain how to use the REPL with both Serial USB and Telnet connections.
The REPL includes the following features:
- Input history: use arrow up and arrow down to scroll through the history
- Tab completion: press tab to auto-complete variables or module names
- Halt any executing code: with
Ctrl-C - Copy/paste code or output:
Ctrl-CandCtrl-V
{{% hint style="info" %}} There are a number of useful shortcuts for interacting with the MicroPython REPL. See below for the key combinations;
Ctrl-Aon a blank line will enter raw REPL mode. This is similar to permanent paste mode, except that characters are not echoed back.Ctrl-Bon a blank like goes to normal REPL mode.Ctrl-Ccancels any input, or interrupts the currently running code.Ctrl-Don a blank line will do a soft reset.Ctrl-Eenters ‘paste mode' that allows you to copy and paste chunks of text. Exit this mode usingCtrl-D.Ctrl-Fperforms a "safe-boot" of the device that preventsboot.pyandmain.pyfrom executing {{% /hint %}}