Last cleanup of example
This commit is contained in:
parent
2d507fe7c4
commit
fbd558183b
|
@ -9,7 +9,7 @@ Cylon.robot
|
||||||
device:
|
device:
|
||||||
{ name: 'leapmotion', driver: 'leapmotion', connection: 'leapmotion' }
|
{ name: 'leapmotion', driver: 'leapmotion', connection: 'leapmotion' }
|
||||||
|
|
||||||
turnLED: (status) ->
|
led: (status) ->
|
||||||
console.log status
|
console.log status
|
||||||
this.skynet.message
|
this.skynet.message
|
||||||
"devices": ["742401f1-87a4-11e3-834d-670dadc0ddbf"],
|
"devices": ["742401f1-87a4-11e3-834d-670dadc0ddbf"],
|
||||||
|
@ -19,9 +19,9 @@ Cylon.robot
|
||||||
work: (my) ->
|
work: (my) ->
|
||||||
my.leapmotion.on 'frame', (frame) ->
|
my.leapmotion.on 'frame', (frame) ->
|
||||||
if frame.hands.length > 0
|
if frame.hands.length > 0
|
||||||
my.turnLED 'on'
|
my.led 'on'
|
||||||
|
|
||||||
else
|
else
|
||||||
my.turnLED 'off'
|
my.led 'off'
|
||||||
|
|
||||||
.start()
|
.start()
|
||||||
|
|
Loading…
Reference in New Issue