SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Revision:
96:ec89c4d1383d
Parent:
92:e9bd429f16b5
Child:
97:0ed9ede9a995
--- a/Hardwares/ArduUTFT.cpp	Wed Apr 19 19:26:49 2017 +0000
+++ b/Hardwares/ArduUTFT.cpp	Wed Apr 19 19:43:15 2017 +0000
@@ -83,23 +83,18 @@
 
 void ardu_utft_init()
 {
-    //char buf[20];
     uint8_t VerNum = ardu_cam_spi_read_8(ARDUCHIP_VER_UTFT);
     VerNum = ardu_cam_spi_read_8(ARDUCHIP_VER_UTFT);
     
-    
-    //sprintf(buf, "UTFT Ver %#x", VerNum);
-    //g_core.GetUSBServer().PushReliableMsg('D', buf);
-    
     ardu_cam_spi_write_8(ARDUCHIP_TEST1_UTFT, ARDUCHIP_TEST_MSG_UTFT);
     uint8_t testV = ardu_cam_spi_read_8(ARDUCHIP_TEST1_UTFT);
     if(VerNum != ARDUCHIP_VER_NUM_UTFT || testV != ARDUCHIP_TEST_MSG_UTFT)
     {
-        //g_core.GetUSBServer().PushReliableMsg('D', "UTFTInit Fai");
+        
     }
     else
     {
-        //g_core.GetUSBServer().PushReliableMsg('D', "UTFTInit Suc");
+        
     }
     
     ardu_cam_set_mode(MCU2LCD_MODE);
@@ -146,11 +141,6 @@
     ardu_utft_write_COM_DATA_internal(0x4e,0x0000);
     ardu_utft_write_COM_internal(0x22);
     
-    //ardu_cam_spi_write_8(0x03, 0x04); ////////////////
-    
-    //setColor(255, 255, 255);
-    //setBackColor(0, 0, 0);
-    //current_font = NULL;
     ardu_utft_set_font(SmallFont);
     ardu_utft_clr_scr();