Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of CANary by Tick Tock

Revision:
139:ac227b203ef2
Parent:
138:a2f5af85ed0d
Child:
140:ab3e94eb0227
--- a/displayModes.cpp	Fri Aug 02 05:13:26 2013 +0000
+++ b/displayModes.cpp	Fri Aug 02 14:11:23 2013 +0000
@@ -52,7 +52,7 @@
             dte=convertDistance(minTripEff*useable_kWh);
             tt.foreground(Green);
             tt.locate(20,80);            
-            if(dte>=10){
+            if(dte>=9.5){
                 printf("%2.0f \n",dte); //LM - add metric conversion
             }else{
                 printf("%2.1f \n",dte); //LM - add metric conversion
@@ -65,10 +65,10 @@
                 dte=199;
             }
             // " "=0x10, "."=0x15, #=0x1D
-            if(dte>=100){
+            if(dte>=99.5){
                 tt.locate(80,85);
                 printf(" %3.0f\n",dte); //LM - add metric conversion
-            }else if(dte>=10){
+            }else if(dte>=9.5){
                 tt.locate(94,85);
                 printf("  %2.0f\n",dte); //LM - add metric conversion
             }else{
@@ -81,10 +81,10 @@
 
             dte=convertDistance(maxTripEff*useable_kWh);
             tt.foreground(Orange);
-            if(dte>=100){
+            if(dte>=99.5){
                 tt.locate(255,80);            
                 printf("%3.0f \n",dte); //LM - add metric conversion            
-            }else if(dte>=10){
+            }else if(dte>=9.5){
                 tt.locate(270,80);            
                 printf("%2.0f \n",dte); //LM - add metric conversion
             }else{