项目作者: OnionIoT

项目描述 :
Provides access to GPIOs by directly writing to the hw registers, implements sw PWM as well
高级语言: C++
项目地址: git://github.com/OnionIoT/fast-gpio.git
创建时间: 2015-09-12T08:34:03Z
项目社区:https://github.com/OnionIoT/fast-gpio

开源协议:GNU General Public License v3.0

下载


fast-gpio

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

usage

  1. fast-gpio set-input <gpio>
  2. fast-gpio set-output <gpio>
  3. fast-gpio get-direction <gpio>
  4. fast-gpio read <gpio>
  5. fast-gpio set <gpio> <value: 0 or 1>
  6. 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:

  1. fast-gpio -q set-input 5
  2. fast-gpio -u read 5
  3. > {"cmd":"Read", "pin":12, "val":"1"}