Skip to content

Commit

Permalink
Merge pull request #82 from RaspberryPiFoundation/dev
Browse files Browse the repository at this point in the history
doc fixes
  • Loading branch information
Martin O'Hanlon authored Oct 19, 2022
2 parents a779518 + f76da5d commit 4f9ecbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docs/examples/potentiometer.py
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)

7 changes: 0 additions & 7 deletions picozero/picozero.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,6 @@ class DigitalOutputDevice(OutputDevice, PinMixin):
:param int pin:
The pin that the device is connected to.
:param int freq:
The frequency of the PWM signal in Hertz. Defaults to 100.
:param int duty_factor:
The duty factor of the PWM signal. This is a value between 0 and 65535.
Defaults to 65535.
:param bool active_high:
If :data:`True` (the default), the :meth:`on` method will set the Pin
to HIGH. If :data:`False`, the :meth:`on` method will set the Pin to
Expand Down

0 comments on commit 4f9ecbf

Please sign in to comment.