From 02770fcb7b365e9927564655bcaca14a32033fce Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Wed, 28 Aug 2019 23:21:25 +0200 Subject: [PATCH] docs: Document gpio.ADC for 1.9 Signed-off-by: Rahix <rahix@rahix.de> --- Documentation/pycardium/gpio.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/pycardium/gpio.rst b/Documentation/pycardium/gpio.rst index 7d17b3fd..28854d14 100644 --- a/Documentation/pycardium/gpio.rst +++ b/Documentation/pycardium/gpio.rst @@ -52,7 +52,7 @@ output in your scripts. :returns: Current value of the GPIO pin. If the pin is configured as ADC, the value returned will be between 0 and 1000, representing voltages from - 0V to 3.3V + 0V to 3.3V (:py:data:`gpio.ADC` is only available in 1.9+). .. py:data:: WRISTBAND_1 @@ -81,6 +81,12 @@ output in your scripts. Configures a pin as input. +.. py:data:: ADC + + Configure pin as ADC input. + + .. versionadded: 1.9 + .. py:data:: PULL_UP Enables the internal pull-up resistor of a pin. -- GitLab