Raspberry Pi GPIO interface for NAP applications using Wiring PI
Compatible with NAP 0.6 and higher - package release and source context.
Download the module as .zip archive and install it into the nap modules
directory:
cd tools
./install_module.sh ~/Downloads/nappipins-main.zip
Clone the repository and setup the module in the nap modules
directory.
cd modules
clone https://github.com/naivisoftware/nappipins.git
./../tools/setup_module.sh nappipins
Shows how to use the GPIO of the raspberry pi together with a Sequence Player.
The application controls pulse width modulation on one GPIO pin and uses another pin as a simple on/off blink example.
See the declared GPIO pin numbers in default.json
. Run the example as sudo
- using PWM_OUTPUT
mode requires root access.