Skip to content

Commit

Permalink
added diagram to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunmulligan committed Oct 23, 2014
1 parent b4d4823 commit 9d660f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
@@ -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...

Binary file added docs/images/basic-gpio-diagram_bb.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d660f1

Please sign in to comment.