This repo is part of the Node.js Embedded Development on the Raspberry Pi guide.
Run the following on your Raspberry Pi. This is assuming you have already installed node.js.
$ git clone https://github.com/adafruit/Pi_Node_Example.git ~/pi_examples && cd pi_examples
$ npm install
node blink.js
- blink a LED attached to GPIO pin 18 every second.node stream_stdout.js
- demonstrates the use of node.js streams by piping button presses to the terminalnode stream_led
- demonstrates the use of node.js streams by piping button presses to a LED attached on pin 18node stream_browser.js
- a more complex example that demonstrates the use of node.js streams by piping button presses to a LED and a web browser
This shows the circuit you will need to connect in order to run this example code. If you would like more info, please visit the guide.
Copyright (c) 2014 Adafruit Industries. Licensed under the MIT license.