Last cleanup of example
This commit is contained in:
parent
2d507fe7c4
commit
fbd558183b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue