Added new beaglebone blink example.

This commit is contained in:
Edgar O Silva 2013-12-03 13:30:56 -08:00
parent 22bf824273
commit 0d38a2bd55
1 changed files with 15 additions and 0 deletions

15
examples/bbb_blink.coffee Normal file
View File

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