Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
datenwolf
firmware
Commits
1bec43bf
Verified
Commit
1bec43bf
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
docs: Fix whitespace issues
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
2dcd065b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Documentation/how-to-build.rst
+3
-3
3 additions, 3 deletions
Documentation/how-to-build.rst
Documentation/pycardium/gpio.rst
+11
-11
11 additions, 11 deletions
Documentation/pycardium/gpio.rst
with
14 additions
and
14 deletions
Documentation/how-to-build.rst
+
3
−
3
View file @
1bec43bf
...
@@ -20,11 +20,11 @@ Dependencies
...
@@ -20,11 +20,11 @@ Dependencies
.. code-block:: shell-session
.. code-block:: shell-session
pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
- Fedora
- Fedora
.. code-block:: shell-session
.. code-block:: shell-session
dnf install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
dnf install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
- Alternative: Download `ARM's GNU toolchain`_. **TODO**
- Alternative: Download `ARM's GNU toolchain`_. **TODO**
...
...
This diff is collapsed.
Click to expand it.
Documentation/pycardium/gpio.rst
+
11
−
11
View file @
1bec43bf
...
@@ -13,7 +13,7 @@ output in your scripts.
...
@@ -13,7 +13,7 @@ output in your scripts.
gpio.set_mode(gpio.WRISTBAND_1, gpio.mode.OUTPUT)
gpio.set_mode(gpio.WRISTBAND_1, gpio.mode.OUTPUT)
gpio.write(gpio.WRISTBAND_1, True)
gpio.write(gpio.WRISTBAND_1, True)
gpio.set_mode(gpio.WRISTBAND_2, gpio.mode.INPUT | gpio.mode.PULL_UP)
gpio.set_mode(gpio.WRISTBAND_2, gpio.mode.INPUT | gpio.mode.PULL_UP)
state = gpio.read(gpio.WRISTBAND_2)
state = gpio.read(gpio.WRISTBAND_2)
print("State of Wristband pin 2:", state)
print("State of Wristband pin 2:", state)
...
@@ -30,21 +30,21 @@ output in your scripts.
...
@@ -30,21 +30,21 @@ output in your scripts.
.. py:function:: gpio.get_mode(pin)
.. py:function:: gpio.get_mode(pin)
Get GPIO pin state.
Get GPIO pin state.
:param int pin: ID of the pin of to get the mode of.
:param int pin: ID of the pin of to get the mode of.
:returns: An integer with the configure mode bits set.
:returns: An integer with the configure mode bits set.
.. py:function:: gpio.write(pin, value)
.. py:function:: gpio.write(pin, value)
Write a value to a GPIO pin.
Write a value to a GPIO pin.
:param int pin: ID of the pin of to get the mode of.
:param int pin: ID of the pin of to get the mode of.
:param bool value: New pin value.
:param bool value: New pin value.
.. py:function:: gpio.read(pin)
.. py:function:: gpio.read(pin)
Read GPIO pin value.
Read GPIO pin value.
:param int pin: ID of the pin of to get the mode of.
:param int pin: ID of the pin of to get the mode of.
:returns: Current value of the GPIO pin.
:returns: Current value of the GPIO pin.
...
@@ -63,19 +63,19 @@ output in your scripts.
...
@@ -63,19 +63,19 @@ output in your scripts.
.. py:data:: gpio.WRISTBAND_4
.. py:data:: gpio.WRISTBAND_4
Pin ID for Wristband GPIO 4.
Pin ID for Wristband GPIO 4.
.. py:data:: gpio.mode.OUTPUT
.. py:data:: gpio.mode.OUTPUT
Configures a pin as output.
Configures a pin as output.
.. py:data:: gpio.mode.INPUT
.. py:data:: gpio.mode.INPUT
Configures a pin as 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.
Enables the internal pull-up resistor of a pin.
.. py:data:: gpio.mode
:
PULL_DO
wn
.. py:data:: gpio.mode
.
PULL_DO
WN
Enables the internal pull-down resistor of a pin.
Enables the internal pull-down resistor of a pin.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment