balena-io-experimental / balena-rpi-nodejs-basic-gpio

This is a basic example of GPIO control on the rasperry pi

Home Page:https://www.balena.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/.

About

This is a basic example of GPIO control on the rasperry pi

https://www.balena.io/


Languages

Language:JavaScript 93.5%Language:Shell 6.5%