We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__doc__ =
1 parent 07995e9 commit 3d5ffa8Copy full SHA for 3d5ffa8
1 file changed
examples/switch.py
@@ -1,4 +1,4 @@
1
-__doc__ = """
+"""
2
switch.py
3
=========
4
@@ -9,7 +9,7 @@
9
Micro Python v1.0.1 on 2014-05-12; PYBv1.0 with STM32F405RG
10
Type "help()" for more information.
11
>>> import switch
12
- >>> switch.run_loop([2, 3])
+ >>> switch.run_loop()
13
Loop started.
14
Press Ctrl+C to break out of the loop.
15
@@ -28,8 +28,8 @@ def run_loop(leds=all_leds):
28
"""
29
Start the loop.
30
31
- :param `use_leds`: Which LEDs to light up upon switch press.
32
- :type `use_leds`: sequence of LED objects
+ :param `leds`: Which LEDs to light up upon switch press.
+ :type `leds`: sequence of LED objects
33
34
print('Loop started.\nPress Ctrl+C to break out of the loop.')
35
while 1:
0 commit comments