1
0
mirror of https://github.com/danog/fast-gpio.git synced 2024-11-30 04:19:09 +01:00
Go to file
2017-08-11 20:19:06 +02:00
include Start of pcm shiz 2017-08-11 00:10:03 +02:00
scripts fixed merging issues 2016-07-27 17:41:51 -04:00
src I accidentally created an ultrasound weapon 2017-08-11 20:19:06 +02:00
tools Compatible for Omega and Omega2 2016-08-15 15:29:18 -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 Start of pcm shiz 2017-08-11 00:10:03 +02: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"}