Skip to content

macrivello/resin-rpi-nodejs-basic-gpio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.5%
  • Shell 6.5%