Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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);
- }
+
}