From f76da5da15e9fe5132078d0fdb3a93fc7c21c0b2 Mon Sep 17 00:00:00 2001 From: Martin O'Hanlon Date: Wed, 19 Oct 2022 15:54:45 +0100 Subject: [PATCH] doc fixes --- docs/examples/potentiometer.py | 6 +++--- picozero/picozero.py | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/examples/potentiometer.py b/docs/examples/potentiometer.py index 61ca01d..92a51ac 100644 --- a/docs/examples/potentiometer.py +++ b/docs/examples/potentiometer.py @@ -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) diff --git a/picozero/picozero.py b/picozero/picozero.py index 3e58d24..a94c05e 100644 --- a/picozero/picozero.py +++ b/picozero/picozero.py @@ -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