keyboard lit

This commit is contained in:
xixebombilla 2014-02-20 16:08:26 -06:00
parent fbb8643cad
commit 07a7a2c137
1 changed files with 14 additions and 0 deletions

View File

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