Skip to content

Commit 4e1a326

Browse files
committed
Update docstrings.
1 parent 7ad0f2e commit 4e1a326

8 files changed

+13
-9
lines changed

examples/circuitplayground_acceleration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This example uses the accelerometer on the Circuit Playground. It prints the values. Try moving
2+
the board to see the values change."""
13
import time
24
from adafruit_circuitplayground import cp
35

examples/circuitplayground_pixels_simpletest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
# CircuitPython demo - NeoPixel
2-
1+
"""This example lights up the NeoPixels with a rainbow swirl."""
32
import time
43
from adafruit_circuitplayground import cp
54

6-
# The number of pixels in the strip
7-
numpix = 10
8-
95

106
def wheel(pos):
117
# Input a value 0 to 255 to get a color value.

examples/circuitplayground_shake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This example prints to the serial console when the Circuit Playground is shaken."""
12
from adafruit_circuitplayground import cp
23

34
while True:

examples/circuitplayground_tapdetect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This example prints to the serial console when the board is tapped."""
12
from adafruit_circuitplayground import cp
23

34
cp.detect_taps = 1

examples/circuitplayground_tapdetect_single_double.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This example shows how you can use single-tap and double-tap together with a delay between.
2+
Single-tap the board twice and then double-tap the board twice to complete the program."""
13
from adafruit_circuitplayground import cp
24

35
# Set to check for single-taps.

examples/circuitplayground_temperature_plotter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"Plotter" to open it, and place your finger over the sensor to see the numbers change. The
33
sensor is located next to the picture of the thermometer on the CPX."""
44
import time
5-
from adafruit_circuitplayground.express import cpx
5+
from adafruit_circuitplayground import cp
66

77
while True:
8-
print("Temperature C:", cpx.temperature)
9-
print("Temperature F:", cpx.temperature * 1.8 + 32)
10-
print((cpx.temperature, cpx.temperature * 1.8 + 32))
8+
print("Temperature C:", cp.temperature)
9+
print("Temperature F:", cp.temperature * 1.8 + 32)
10+
print((cp.temperature, cp.temperature * 1.8 + 32))
1111
time.sleep(0.1)

examples/circuitplayground_tone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This example plays a different tone for each button, while the button is pressed."""
12
from adafruit_circuitplayground import cp
23

34
while True:

examples/circuitplayground_touched.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""This example prints to the serial console when you touch the capacitive touch pads."""
12
from adafruit_circuitplayground import cp
23

34
while True:

0 commit comments

Comments
 (0)