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
Fork of CRIC_RFID by
Diff: main.cpp
- Revision:
- 1:6713f9d95bad
- Parent:
- 0:a6addbfe44b4
- Child:
- 2:41df6e176f9a
--- a/main.cpp Wed Nov 12 10:15:52 2014 +0000
+++ b/main.cpp Wed Nov 12 10:52:12 2014 +0000
@@ -12,10 +12,10 @@
unsigned char tabData[20];
debugPC.baud(19200);
- debugPC.printf("\nHello World!\n");
+ debugPC.printf("\n\rHello World!\n");
while(1) {
- sendFrame(0x80, 0x01, tabData);
+ sendFrame(0x80, 0x00, tabData);
if(comRFID.readable() == 1){
debugPC.printf("\nOK");
}
@@ -44,12 +44,14 @@
comRFID.putc(csum); //CSUM
//Affiche debug
- debugPC.printf("\nTX :\t0xFF 0x00");
- debugPC.putc(lengthData );
- debugPC.putc(command);
+ debugPC.printf("\n\rTX :\t");
+ debugPC.printf("FF ");
+ debugPC.printf("00 ");
+ debugPC.printf("%x ", lengthData );
+ debugPC.printf("%x ", command);
for(unsigned int cpt; cpt<lengthData; cpt++)
- debugPC.putc(*(data+cpt));
- debugPC.putc(csum);
+ debugPC.printf("%x ", *(data+cpt));
+ debugPC.printf("%x ", csum);
}
void flashingLED() {
