Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -264,13 +264,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