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.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 4:60f9b48d9eb6
- Parent:
- 3:2507fc42675c
- Child:
- 5:b1ac24b6f25d
--- a/main.cpp Tue Apr 30 14:18:34 2019 +0000 +++ b/main.cpp Tue Apr 30 14:50:28 2019 +0000 @@ -30,8 +30,14 @@ #include "mbed.h" #include "MFRC522.h" -// Nucleo Pin for MFRC522 reset -#define MF_RESET D8 +// FRDM KL25Z Pins for MFRC522 +#define MF_RESET D8 //Or anything else +#define SERIAL_TX D0 //UART0 +#define SERIAL_RX D1 //UART0 +#define SPI_MOSI D11 //PTC17 +#define SPI_MISO D12 //PTA16 +#define SPI_SCK D13 //PTA17 +#define SPI_CS D10 //Chip select can be any digital pin DigitalOut LedGreen(LED1); //for showing active signal on dev board DigitalOut LedPower(A2); //for toggling MOSFET