Added new beaglebone blink example.
This commit is contained in:
parent
22bf824273
commit
0d38a2bd55
|
@ -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()
|
Loading…
Reference in New Issue