Skip to content
Provides access to GPIOs by directly writing to the hw registers, implements sw PWM as well
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include -Changed so that DEVICE_TYPE passed in at build time Aug 16, 2016
scripts fixed merging issues Jul 27, 2016
src Fix gpioObj leak in gpioRun() Feb 22, 2019
tools Compatible for Omega and Omega2 Aug 15, 2016
.gitignore added gitignore file Jul 27, 2016
LICENSE.md added GPLv3 license Mar 18, 2016
README.md Update README.md with some doc May 21, 2016
common_commands.txt Initial commit of fast-gpio, gpio read and write is implemented, pwm … Sep 12, 2015
makefile -Changed so that DEVICE_TYPE passed in at build time Aug 16, 2016
pulses_example.csv

README.md

fast-gpio

Provides access to GPIOs by directly writing to the hw registers, implements sw PWM as well

usage

fast-gpio set-input <gpio>
fast-gpio set-output <gpio>
fast-gpio get-direction <gpio>
fast-gpio read <gpio>
fast-gpio set <gpio> <value: 0 or 1>
fast-gpio pwm <gpio> <freq in Hz> <duty cycle percentage>

verbose output modes

Verbose flags available:

  • -q quite output
  • -v verbose output
  • -u ubus output
  • -d debug output

Examples:

fast-gpio -q set-input 5
fast-gpio -u read 5
> {"cmd":"Read", "pin":12, "val":"1"}
You can’t perform that action at this time.