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:
- 8:d351d1714db8
- Parent:
- 7:9da3924dc82d
- Child:
- 9:369b261ddb10
diff -r 9da3924dc82d -r d351d1714db8 main.cpp --- a/main.cpp Fri May 03 11:20:31 2019 +0000 +++ b/main.cpp Fri May 03 11:27:21 2019 +0000 @@ -130,7 +130,7 @@ MFRC522 rfid2(SPI_MOSI, SPI_MISO, SPI_SCK, SPI_CS2, MF_RESET2); int main(void) { - pc.printf("Starting the Team 2 Pro 2 House...\n\r"); + printf("Starting the Team 2 Pro 2 House...\n\r"); // Init. RC522 chips rfid1.PCD_Init(); @@ -144,11 +144,11 @@ LedGreen = 0; - pc.printf("Front door: "); + printf("Front door: "); for (uint8_t i = 0; i < rfid1.uid.size; i++) { - pc.printf(" %02X", rfid1.uid.uidByte[i]); + printf(" %02X", rfid1.uid.uidByte[i]); } - pc.printf("\n\r"); + printf("\n\r"); wait_ms(200); } } //end rfid1 @@ -159,11 +159,11 @@ LedGreen = 0; - pc.printf("Room 1: "); + printf("Room 1: "); for (uint8_t i = 0; i < rfid2.uid.size; i++) { - pc.printf(" %02X", rfid2.uid.uidByte[i]); + printf(" %02X", rfid2.uid.uidByte[i]); } - pc.printf("\n\r"); + printf("\n\r"); wait_ms(200); } } //end rfid2