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

Files at this revision

API Documentation at this revision

Comitter:
cbookman3
Date:
Wed Apr 23 17:06:43 2014 +0000
Parent:
3:58f770be2eea
Commit message:
added comments

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Apr 23 17:03:53 2014 +0000
+++ b/main.cpp	Wed Apr 23 17:06:43 2014 +0000
@@ -7,8 +7,14 @@
 /* Globals */
           //(PinName pdata0, PinName pdata1, PinName pHold, void (*onCardRead)());
 Wiegand rfid(p30           , p29           , p28          , &onCardRead);
-USBMouseKeyboard key_mouse;
 
+/*
+  hook up to a usb breakout board: D+ to D+, d- to d-, grnd to grnd
+  If you do not have the usb breakout board for keyboard emulation,
+  you can use Serial over USB by changing the USBMouseKeyboard line to read:
+  Serial key_mouse(USBTX, USBRX);
+*/
+USBMouseKeyboard key_mouse; 
 int main() {
     while(1) {
         rfid.doEvents(); //check if RFID Reader has read all data