-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from RaspberryPiFoundation/dev
doc fixes
- Loading branch information
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Potentiometer connected to ADC0, GND and 3V | ||
# Potentiometer connected to GP26 (ADC0), GND and 3V | ||
|
||
from time import sleep | ||
from pico import Pot | ||
|
||
pot = Pot(0) | ||
pot = Pot(26) | ||
|
||
while True: | ||
print(pot.value, pot.voltage, pot.percent) | ||
print(pot.value, pot.voltage) | ||
sleep(0.1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters