Example program to read HID ProxCards using the gatech BuzzCard format with a HID ProxPoint Plus 6005BG00.

Dependencies:   HID_Wiegand mbed USBDevice

See library: http://mbed.org/users/cbookman3/code/HID_Wiegand/wiki/Homepage

Revision:
2:cbbc69f00a81
Parent:
1:093dffbd107b
Child:
3:58f770be2eea
--- a/main.cpp	Tue Apr 22 17:56:04 2014 +0000
+++ b/main.cpp	Wed Apr 23 16:44:17 2014 +0000
@@ -1,11 +1,15 @@
 #include "mbed.h"
 #include "Wiegand.h"
+#include "USBMouseKeyboard.h"
 
-Serial pc(USBTX, USBRX); // tx, rx
+//Serial pc(USBTX, USBRX); // tx, rx
+USBMouseKeyboard key_mouse;
+
 void onCardRead();
-//          (PinName pdata0, PinName pdata1, PinName pHold, void (*onCardRead)());
+          //(PinName pdata0, PinName pdata1, PinName pHold, void (*onCardRead)());
 Wiegand rfid(p30           , p29           , p28          , &onCardRead);
 
+
 int main() {
     while(1) {
         rfid.doEvents(); //check if RFID Reader has read all data
@@ -13,8 +17,6 @@
 }
 
 void onCardRead() {
-   uint64_t data; 
-   data = rfid.getBits(14, 33);
-   pc.printf("\nRead id of: %lld",data);
-   
+   uint64_t rawCardData = rfid.getBits(14,33);
+   key_mouse.printf("%lld\r\n",rawCardData);
 }