Skip to content

nghiant2710/basic-gpio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 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 :
  • add the resin remote repo with git remote add resin git@git.resin.io:myGithubName/myResinAppName.git , with the correct github and app name, or just copy if from the top right hand corner of your device dashboard on resin.io.
  • now just git push resin master wait a minute or so for the code to upload and start.
  • enjoy the all the LED goodness...

Circuit diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.1%
  • Shell 5.9%