Skip to content

Commit 9da1477

Browse files
committed
Update docstring, import
1 parent c36cc62 commit 9da1477

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Introducing_CircuitPlaygroundExpress/CircuitPlaygroundExpress_AnalogIn.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# CircuitPlaygroundExpress_AnalogIn
2-
# reads the analog voltage level from a 10k potentiometer
3-
# connected to GND, 3.3V, and pin A1
4-
# and prints the results to the REPL
1+
# Circuit Playground AnalogIn
2+
# Reads the analog voltage level from a 10k potentiometer connected to GND, 3.3V, and pin A1
3+
# and prints the results to the serial console.
54

65
import time
7-
86
import board
9-
from analogio import AnalogIn
7+
import analogio
108

11-
analogin = AnalogIn(board.A1)
9+
analogin = analogio.AnalogIn(board.A1)
1210

1311

1412
def getVoltage(pin): # helper

0 commit comments

Comments
 (0)