Trung Nguyen
/
FINAL_PROJECT_4180
asdasdasd
Fork of FINAL_PROJECT_4180 by
Diff: main.cpp
- Revision:
- 9:48e93bcd1d5c
- Parent:
- 1:0e5e9821d89d
- Child:
- 10:c3556e27e576
diff -r 9b41712fd2c3 -r 48e93bcd1d5c main.cpp --- a/main.cpp Mon Apr 25 01:18:04 2016 +0000 +++ b/main.cpp Mon Apr 25 01:39:32 2016 +0000 @@ -2,19 +2,17 @@ #include "lib.h" Serial mag_card(p13, p14); -Serial pc(USBTX, USBRX); +Serial android(USBTX, USBRX); +FPScanner fp(p9, p10); +uLCD_4DGL lcd(p28, p27, p30); +PwmOut speaker(p21); + +// Flash Memory +SPI spi(p5, p6, p7); // MOSI, MISO, CLK +DigitalOut cs(p20); // Chip Select int main() { - char card_data[250]; - int bytes_read; - int hash; - - while (true) { - read_mag_card(&mag_card, card_data, &bytes_read); - hash = hashcode(card_data, bytes_read); - pc.printf("Bytes read: %d\n\rHash Code: %d\n\r", bytes_read, hash); - wait(2); - } + }