hmc5883l

Dependencies:   HMC5883L LCD4884 MFRC522 eeprom mbed

Files at this revision

API Documentation at this revision

Comitter:
1918june
Date:
Tue Dec 08 19:39:35 2015 +0000
Parent:
6:4923616c7321
Commit message:
don't show select mode

Changed in this revision

project.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/project.cpp	Tue Dec 08 18:58:50 2015 +0000
+++ b/project.cpp	Tue Dec 08 19:39:35 2015 +0000
@@ -314,7 +314,7 @@
     if(y < 160) {
         Left();
     }
-    
+
 
 }
 void servodown()
@@ -463,7 +463,7 @@
         printf("\n\r");
         if( RFID.uid.uidByte[0]==recieveUID[0] && RFID.uid.uidByte[1]==recieveUID[1] && RFID.uid.uidByte[2]==recieveUID[2] && RFID.uid.uidByte[3]==recieveUID[3] ) {
             //จำ
-            pc.printf("%s\t%s\t%s\n",recieveNameJune,recieveSurJune,recieveIdJune);
+          printf("%s\t%s\t%s\n",recieveNameJune,recieveSurJune,recieveIdJune);
             lcd.LCD_clear();
             string name,sur,point;//June
             eeprom.read(1,&name,11);
@@ -475,7 +475,7 @@
             user=1;
         }
         if( RFID.uid.uidByte[0]==recieveUID[4] && RFID.uid.uidByte[1]==recieveUID[5] && RFID.uid.uidByte[2]==recieveUID[6] && RFID.uid.uidByte[3]==recieveUID[7] ) {
-            pc.printf("%s\t%s\t%s\n",recieveNameO,recieveSurO,recieveIdO);
+          //  printf("%s\t%s\t%s\n",recieveNameO,recieveSurO,recieveIdO);
             string name,sur,point;
             lcd.LCD_clear();
             eeprom.read(41,&name,7);
@@ -486,7 +486,8 @@
             printstring(0,2,point,1,0);
             user=2;
         }
-        //wait(2);
+        printf("check");
+        wait(2);
         //lcd.LCD_clear();
         lcd.LCD_write_string(0,4,"1 select item",0);
         lcd.LCD_write_string(0,5,"2 select place",0);