diff --git a/examples/test.js b/examples/test.js new file mode 100644 index 0000000..0d5b5aa --- /dev/null +++ b/examples/test.js @@ -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();