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

Dependencies:   mbed

USBMouse/USBKeyboard.cpp

Committer:
chris
Date:
2011-05-12
Revision:
0:9d0f47bc66da

File content as of revision 0:9d0f47bc66da:

#include "USBKeyboard.h"

#include "Stream.h"
#include "usbhid.h"

int USBKeyboard::_putc(int value) {
    _usbhid.keyboard(value);
    return value;
}
    
int USBKeyboard::_getc() {
    return -1;
}