Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
9cef2b03
Commit
9cef2b03
authored
7 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
docs/reference/repl.rst: Fix some minor errors in the REPL tutorial.
parent
993f4345
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/reference/repl.rst
+6
-5
6 additions, 5 deletions
docs/reference/repl.rst
with
6 additions
and
5 deletions
docs/reference/repl.rst
+
6
−
5
View file @
9cef2b03
...
@@ -19,7 +19,7 @@ If your cursor is all the way back at the beginning, pressing RETURN will then
...
@@ -19,7 +19,7 @@ If your cursor is all the way back at the beginning, pressing RETURN will then
execute the code that you've entered. The following shows what you'd see
execute the code that you've entered. The following shows what you'd see
after entering a for statement (the underscore shows where the cursor winds up):
after entering a for statement (the underscore shows where the cursor winds up):
>>> for i in range(3):
>>> for i in range(3
0
):
... _
... _
If you then enter an if statement, an additional level of indentation will be
If you then enter an if statement, an additional level of indentation will be
...
@@ -58,9 +58,10 @@ Auto-completion
...
@@ -58,9 +58,10 @@ Auto-completion
While typing a command at the REPL, if the line typed so far corresponds to
While typing a command at the REPL, if the line typed so far corresponds to
the beginning of the name of something, then pressing TAB will show
the beginning of the name of something, then pressing TAB will show
possible things that could be entered. For example type ``m`` and press TAB
possible things that could be entered. For example, first import the machine
and it should expand to ``machine``. Enter a dot ``.`` and press TAB again. You
module by entering ``import machine`` and pressing RETURN.
should see something like:
Then type ``m`` and press TAB and it should expand to ``machine``.
Enter a dot ``.`` and press TAB again. You should see something like:
>>> machine.
>>> machine.
__name__ info unique_id reset
__name__ info unique_id reset
...
@@ -151,7 +152,7 @@ method by which you're connected to the MicroPython board (USB-serial, or Wifi).
...
@@ -151,7 +152,7 @@ method by which you're connected to the MicroPython board (USB-serial, or Wifi).
You can perform a soft reset from the REPL by pressing Ctrl-D, or from your python
You can perform a soft reset from the REPL by pressing Ctrl-D, or from your python
code by executing: ::
code by executing: ::
raise SystemExit
machine.soft_reset()
For example, if you reset your MicroPython board, and you execute a dir()
For example, if you reset your MicroPython board, and you execute a dir()
command, you'd see something like this:
command, you'd see something like this:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment