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:
0:59e72754e5b6
Child:
1:093dffbd107b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Apr 22 17:53:41 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "Wiegand.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
+void onCardRead();
+
+Wiegand rfid(p30, p29, p28, &onCardRead); //, PinName pHold, &onCardRead); //void (*onCardRead)(void));
+
+int main() {
+    while(1) {
+        rfid.doEvents();
+    }
+}
+
+void onCardRead() {
+   uint64_t data; 
+   data = rfid.getBits(14, 33);
+   pc.printf("\nRead id of: %lld",data);
+   
+}