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:
3:58f770be2eea
Parent:
2:cbbc69f00a81
Child:
4:51cb26420674
--- a/main.cpp	Wed Apr 23 16:44:17 2014 +0000
+++ b/main.cpp	Wed Apr 23 17:03:53 2014 +0000
@@ -1,21 +1,20 @@
 #include "mbed.h"
 #include "Wiegand.h"
 #include "USBMouseKeyboard.h"
+/* Prototypes */
+void onCardRead();
 
-//Serial pc(USBTX, USBRX); // tx, rx
-USBMouseKeyboard key_mouse;
-
-void onCardRead();
+/* Globals */
           //(PinName pdata0, PinName pdata1, PinName pHold, void (*onCardRead)());
 Wiegand rfid(p30           , p29           , p28          , &onCardRead);
-
+USBMouseKeyboard key_mouse;
 
 int main() {
     while(1) {
         rfid.doEvents(); //check if RFID Reader has read all data
     }
 }
-
+//function is run every time that rfid finishes reading a buzzcard
 void onCardRead() {
    uint64_t rawCardData = rfid.getBits(14,33);
    key_mouse.printf("%lld\r\n",rawCardData);