Add digispark blink example in coffeescript
This commit is contained in:
parent
459dbc15db
commit
957419cc4a
|
@ -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()
|
Loading…
Reference in New Issue