Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shaunmulligan
committed
Oct 23, 2014
1 parent
b4d4823
commit 9d660f1
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# 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 18 which will light up when the button is pressed on pin 17. | ||
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 : | ||
1. clone this repo locally and cd into the folder. | ||
1. connect up the pi as shown in the diagram : | ||
![Circuit diagram](/docs/images/SF_tempsensor_bb.png) | ||
1. 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. | ||
1. now just `git push resin master` wait a minute or so for the code to upload and start. | ||
1. enjoy the all the LED goodness... | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.