1
0
mirror of https://github.com/danog/fast-gpio.git synced 2024-11-26 20:04:37 +01:00
Go to file
2016-08-09 18:46:05 -04:00
include Pulses function now uses external code file 2016-05-27 23:32:50 +03:00
scripts fixed merging issues 2016-07-27 17:41:51 -04:00
src Made sure that there will be no buffer overrun when loading code that is bigger then max size 2016-05-27 23:39:14 +03:00
tools added remote compile script 2016-08-09 18:46:05 -04:00
.gitignore added gitignore file 2016-07-27 16:53:38 -04:00
common_commands.txt Initial commit of fast-gpio, gpio read and write is implemented, pwm implemented as well 2015-09-12 16:51:25 +08:00
LICENSE.md added GPLv3 license 2016-03-18 12:13:05 -04:00
makefile Initial commit of fast-gpio, gpio read and write is implemented, pwm implemented as well 2015-09-12 16:51:25 +08:00
pulses_example.csv Pulses function now uses external code file 2016-05-27 23:32:50 +03:00
README.md Update README.md with some doc 2016-05-21 11:08:48 -03:00

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"}