Post Last Edited by tony_zhang at 2014-5-6 13:03 |
Node.js can be a good way to control the Hardware GPIO.
First of all, set up the gitthen get the node-gpio source:
And I assume we have already set up the node.js develop environment, if not check this thread: Copy the Code
- git clone git://github.com/youyudehexie/node-cubieboard-gpio.git
change to the root:
root@cubieboard2:/home/linaro/node-cubieboard-gpio#root@cubieboard2:/home/linaro/node-cubieboard-gpio#In run.js you can modify the GPIO PIN, etc. It tests ok, with the help of multimeter. Copy the Code
- node-cubieboard-gpio$ node-gyp configure
I will buy a breadboard, and use some LED for a experiment. To be continued..