Skip to content
This is a basic example of GPIO control on the rasperry pi
JavaScript Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/images added diagram to readme Oct 23, 2014
Dockerfile.template Update balenalib Apr 30, 2019
README.md Update readme Apr 30, 2019
app.js Update balenalib Apr 30, 2019
deps.sh removed tty.js deps and apt-get stuff Oct 23, 2014
package.json Removed preinstall. Nov 3, 2018

README.md

Basic GPIO with node.js

This is a basic example of GPIO control on the rasperry pi using the pi-pins module from npm

In this example we have a LED on pin 22 which will light up when the button is pressed on pin 17 and switch off when pressed again.

All you need to do is :

  • clone this repo locally and cd into the folder.
  • connect up the pi as shown in the diagram
  • using balena cli, run 'balena push ' wait a minute or so for the code to upload and start.
  • enjoy the all the LED goodness...

Circuit diagram

If you have any questions, please contact us on https://forums.balena.io/.

You can’t perform that action at this time.