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

Dependencies:   mbed

Revision:
0:9d0f47bc66da
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBMouse/USBKeyboard.cpp	Thu May 12 16:44:09 2011 +0000
@@ -0,0 +1,14 @@
+#include "USBKeyboard.h"
+
+#include "Stream.h"
+#include "usbhid.h"
+
+int USBKeyboard::_putc(int value) {
+    _usbhid.keyboard(value);
+    return value;
+}
+    
+int USBKeyboard::_getc() {
+    return -1;
+}
+