Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "USBKeyboard.h" 00003 00004 USBKeyboard key; 00005 00006 DigitalIn din(p14); 00007 DigitalOut led1(LED1); 00008 00009 int main(void) { 00010 while (1) { 00011 if (din) { 00012 led1 = !led1; 00013 00014 key.printf("Mr A N Other\t"); // Name on card 00015 key.printf("4929780506391234\t"); // Card number 00016 key.printf("0611\t"); // Valid from 00017 key.printf("0513\t"); // Valid to 00018 key.printf("123\t"); // CVC 00019 wait(1); 00020 key.printf("\n"); // Submit 00021 wait(1); 00022 00023 } 00024 } 00025 }
Generated on Fri Jul 15 2022 02:22:27 by 1.7.2