hello?
This commit is contained in:
parent
f03eac212e
commit
f2e90634c5
|
@ -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();
|
Loading…
Reference in New Issue