Last cleanup of example

This commit is contained in:
deadprogram 2014-02-21 22:14:40 -08:00
parent 2d507fe7c4
commit fbd558183b
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ Cylon.robot
device:
{ name: 'leapmotion', driver: 'leapmotion', connection: 'leapmotion' }
turnLED: (status) ->
led: (status) ->
console.log status
this.skynet.message
"devices": ["742401f1-87a4-11e3-834d-670dadc0ddbf"],
@ -19,9 +19,9 @@ Cylon.robot
work: (my) ->
my.leapmotion.on 'frame', (frame) ->
if frame.hands.length > 0
my.turnLED 'on'
my.led 'on'
else
my.turnLED 'off'
my.led 'off'
.start()