A optical beam breaker detector that appears to aPC as a USB keyboard, typing characters when the beam is broken

Dependencies:   mbed

Committer:
chris
Date:
Thu May 12 16:46:53 2011 +0000
Revision:
1:45de28d7be8e
Parent:
0:9d0f47bc66da

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chris 0:9d0f47bc66da 1 #include "USBKeyboard.h"
chris 0:9d0f47bc66da 2
chris 0:9d0f47bc66da 3 #include "Stream.h"
chris 0:9d0f47bc66da 4 #include "usbhid.h"
chris 0:9d0f47bc66da 5
chris 0:9d0f47bc66da 6 int USBKeyboard::_putc(int value) {
chris 0:9d0f47bc66da 7 _usbhid.keyboard(value);
chris 0:9d0f47bc66da 8 return value;
chris 0:9d0f47bc66da 9 }
chris 0:9d0f47bc66da 10
chris 0:9d0f47bc66da 11 int USBKeyboard::_getc() {
chris 0:9d0f47bc66da 12 return -1;
chris 0:9d0f47bc66da 13 }
chris 0:9d0f47bc66da 14