This commit is contained in:
deadprogram 2013-10-22 12:33:17 -07:00
parent f03eac212e
commit f2e90634c5
1 changed files with 15 additions and 0 deletions

15
examples/test.js Normal file
View File

@ -0,0 +1,15 @@
var cylon = require("cylon");
// Initialize the robot
var robot = cylon.robot({
connection: { name: 'arduino', adaptor: 'firmata', port: '/dev/ttyACM0' },
device: { name: 'led', driver: 'led', pin: 13 },
work: function() {
// we do our thing here
every(1.second(), function() { console.log("ehlo"); });
}
});
// start working
robot.start();