From 1bec43bf0369d0183ed5f3994c6bc5796ad74743 Mon Sep 17 00:00:00 2001 From: Rahix <rahix@rahix.de> Date: Mon, 19 Aug 2019 11:43:45 +0200 Subject: [PATCH] docs: Fix whitespace issues Signed-off-by: Rahix <rahix@rahix.de> --- Documentation/how-to-build.rst | 6 +++--- Documentation/pycardium/gpio.rst | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Documentation/how-to-build.rst b/Documentation/how-to-build.rst index 595cc2610..33a6dc979 100644 --- a/Documentation/how-to-build.rst +++ b/Documentation/how-to-build.rst @@ -20,11 +20,11 @@ Dependencies .. code-block:: shell-session pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib - + - Fedora - + .. code-block:: shell-session - + dnf install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib - Alternative: Download `ARM's GNU toolchain`_. **TODO** diff --git a/Documentation/pycardium/gpio.rst b/Documentation/pycardium/gpio.rst index abcda8dec..ce8225cab 100644 --- a/Documentation/pycardium/gpio.rst +++ b/Documentation/pycardium/gpio.rst @@ -13,7 +13,7 @@ output in your scripts. gpio.set_mode(gpio.WRISTBAND_1, gpio.mode.OUTPUT) gpio.write(gpio.WRISTBAND_1, True) - + gpio.set_mode(gpio.WRISTBAND_2, gpio.mode.INPUT | gpio.mode.PULL_UP) state = gpio.read(gpio.WRISTBAND_2) print("State of Wristband pin 2:", state) @@ -30,21 +30,21 @@ output in your scripts. .. py:function:: gpio.get_mode(pin) Get GPIO pin state. - + :param int pin: ID of the pin of to get the mode of. :returns: An integer with the configure mode bits set. .. py:function:: gpio.write(pin, value) Write a value to a GPIO pin. - + :param int pin: ID of the pin of to get the mode of. :param bool value: New pin value. - + .. py:function:: gpio.read(pin) Read GPIO pin value. - + :param int pin: ID of the pin of to get the mode of. :returns: Current value of the GPIO pin. @@ -63,19 +63,19 @@ output in your scripts. .. py:data:: gpio.WRISTBAND_4 Pin ID for Wristband GPIO 4. - + .. py:data:: gpio.mode.OUTPUT Configures a pin as output. - + .. py:data:: gpio.mode.INPUT Configures a pin as input. - -.. py:data:: gpio.mode:PULL_UP + +.. py:data:: gpio.mode.PULL_UP Enables the internal pull-up resistor of a pin. - -.. py:data:: gpio.mode:PULL_DOwn + +.. py:data:: gpio.mode.PULL_DOWN Enables the internal pull-down resistor of a pin. -- GitLab