Add digispark blink example in coffeescript

This commit is contained in:
deadprogram 2014-01-26 19:31:20 -08:00
parent 459dbc15db
commit 957419cc4a
1 changed files with 13 additions and 0 deletions

View File

@ -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()