Skip to content

Commit 31c0259

Browse files
willingcdpgeorge
authored andcommitted
Add a general info docstring to compass example.
1 parent 1437aea commit 31c0259

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

examples/compass.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
"""
2+
compass.py
3+
~~~~~~~~~~
4+
5+
Creates a compass.
6+
7+
To calibrate the compass, lay it flat and spin it horizontally. For best
8+
results during calibration, try not to tilt the compass up and down.
9+
"""
110
from microbit import *
211

312
needles = (Image.CLOCK12, Image.CLOCK1, Image.CLOCK2, Image.CLOCK3,
4-
Image.CLOCK4, Image.CLOCK5, Image.CLOCK6, Image.CLOCK7,
13+
Image.CLOCK4, Image.CLOCK5, Image.CLOCK6, Image.CLOCK7,
514
Image.CLOCK8, Image.CLOCK9, Image.CLOCK10, Image.CLOCK11)
615

716
# You need to spin the microbit about a few times to help calibrate the compass

0 commit comments

Comments
 (0)