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
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
3d5ffa83
Commit
3d5ffa83
authored
10 years ago
by
Metallicow
Browse files
Options
Downloads
Patches
Plain Diff
remove `__doc__ =` and fix tweak doc diffs
parent
07995e94
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/switch.py
+4
-4
4 additions, 4 deletions
examples/switch.py
with
4 additions
and
4 deletions
examples/switch.py
+
4
−
4
View file @
3d5ffa83
__doc__
=
"""
"""
switch.py
=========
...
...
@@ -9,7 +9,7 @@ Example Usage::
Micro Python v1.0.1 on 2014-05-12; PYBv1.0 with STM32F405RG
Type
"
help()
"
for more information.
>>>
import
switch
>>>
switch
.
run_loop
(
[
2
,
3
]
)
>>>
switch
.
run_loop
()
Loop
started
.
Press
Ctrl
+
C
to
break
out
of
the
loop
.
...
...
@@ -28,8 +28,8 @@ def run_loop(leds=all_leds):
"""
Start the loop.
:param `
use_
leds`: Which LEDs to light up upon switch press.
:type `
use_
leds`: sequence of LED objects
:param `leds`: Which LEDs to light up upon switch press.
:type `leds`: sequence of LED objects
"""
print
(
'
Loop started.
\n
Press Ctrl+C to break out of the loop.
'
)
while
1
:
...
...
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