Projet CRIC / Mbed 2 deprecated CRIC_RFID

Dependencies:   mbed

Fork of CRIC_RFID by Anthony Goncalves

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() {