diff --git a/examples/bbb_blink.coffee b/examples/bbb_blink.coffee new file mode 100644 index 0000000..7c85d10 --- /dev/null +++ b/examples/bbb_blink.coffee @@ -0,0 +1,15 @@ +Cylon = require('..') + +# Initialize the robot +Cylon.robot + connection: + name: 'beaglebone', adaptor: 'beaglebone' + + device: + name: 'led', driver: 'led', pin: 'P9_12' + + work: (my) -> + # we do our thing here + every 1.second(), -> my.led.toggle() + +.start()