keyboard lit
This commit is contained in:
parent
fbb8643cad
commit
07a7a2c137
|
@ -0,0 +1,14 @@
|
|||
# Keyboard
|
||||
|
||||
First, let's import Cylon:
|
||||
|
||||
Cylon = require '../..'
|
||||
|
||||
Cylon.robot
|
||||
device: { name: 'keyboard', driver: 'keyboard' }
|
||||
connection: { name: 'keyboard', adaptor: 'keyboard' }
|
||||
work: (my) ->
|
||||
my.keyboard.on 'a', (key) ->
|
||||
console.log "A PRESSED!"
|
||||
|
||||
.start()
|
Loading…
Reference in New Issue