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:
- 2:fa941f0137b3
- Parent:
- 1:037eeb07f3fc
--- a/main.cpp Fri Jan 10 04:19:56 2020 +0000
+++ b/main.cpp Tue Mar 08 08:48:32 2022 +0000
@@ -10,11 +10,11 @@
#define PRINT_AFTER_N_LOOPS 20
// K64F Pin for "MFRC522 (Chip select, Clock, MOSI, MISO, IRQ, Ground, Reset, 3.3V)"
-#define MF_RESET D9 //Reset
-#define SPI_MOSI p5 //MOSI
-#define SPI_MISO p6 //MISO
-#define SPI_SCK p7 //Clock
-#define SPI_CS p8 //Chip Select
+#define MF_RESET PB_12 //Reset
+#define SPI_MOSI PB_15 //MOSI
+#define SPI_MISO PB_14 //MISO
+#define SPI_SCK PB_13 //Clock
+#define SPI_CS PB_8 //Chip Select
DigitalOut LedGreen(LED1);
Serial pc(USBTX, USBRX);
@@ -62,6 +62,5 @@
uint8_t piccType = RfChip.PICC_GetType(RfChip.uid.sak);
pc.printf("PICC Type: %s \r\n", RfChip.PICC_GetTypeName(piccType));
wait_ms(1000);
-
}
}