diff --git a/examples/digispark/blink.coffee b/examples/digispark/blink.coffee new file mode 100644 index 0000000..7aeadcf --- /dev/null +++ b/examples/digispark/blink.coffee @@ -0,0 +1,13 @@ +Cylon = require '../..' + +# Initialize the robot +Cylon.robot + connection: { name: 'digispark', adaptor: 'digispark'} + + device: { name: 'led', driver: 'led', pin: 1 } + + work: (my) -> + + every 1.second(), -> my.led.toggle() + +.start()