main.cpp
- Committer:
- chris
- Date:
- 2011-10-21
- Revision:
- 1:4d08e0ebf5dd
- Parent:
- 0:e98d1c2b16c6
File content as of revision 1:4d08e0ebf5dd:
#include "mbed.h" #include "USBKeyboard.h" USBKeyboard key; DigitalIn din(p14); DigitalOut led1(LED1); int main(void) { while (1) { if (din) { led1 = !led1; key.printf("Mr A N Other\t"); // Name on card key.printf("4929780506391234\t"); // Card number key.printf("0611\t"); // Valid from key.printf("0513\t"); // Valid to key.printf("123\t"); // CVC wait(1); key.printf("\n"); // Submit wait(1); } } }