Skip to content

Instantly share code, notes, and snippets.

View shrmnk's full-sized avatar
🏕️
working from home

Sherman K shrmnk

🏕️
working from home
View GitHub Profile
@shrmnk
shrmnk / firmatatest.js
Last active February 24, 2016 18:24 — forked from ajfisher/firmatatest.js
Serial comms over hardware UART for Johnny-Five between Arduino and a Raspberry Pi
var firmata = require('firmata');
var repl = require('repl');
var board = new firmata.Board('/dev/ttyAMA0',function(err){
//arduino is ready to communicate
if (err) {
console.log("err:" + err);
return;
}
console.log("Firmata Firing LEDs");