Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of CANary by Tick Tock

Revision:
134:ad243e4f1a17
Parent:
133:b0675d9d11dd
Child:
136:41a204105511
--- a/displayModes.cpp	Wed Jul 24 12:33:49 2013 +0000
+++ b/displayModes.cpp	Thu Jul 25 14:32:54 2013 +0000
@@ -64,6 +64,7 @@
             tt.locate(200,176);
             printf("%4.1fV \n",(float)packV_x2/2);
             lpackV_x2=packV_x2;
+            ltireP=0;//Force tire pressure redraw, too
         }
         if(force||maxTemp!=lmaxTemp){
             tt.locate(200,146);
@@ -92,20 +93,44 @@
             lkW=kW[0];
         }
         if(force||tireP!=ltireP){
-            tt.foreground(LightGrey);
+            if(msg.data[2]<minTirePressure){
+                tt.foreground(Orange); // Hi-light if any are low (<35psi)
+            }else{
+                tt.foreground(LightGrey);
+            }
             if(msg.data[6]&0x80){
+                if(msg.data[2]<minTirePressure){
+                    tt.foreground(Orange); // Hi-light if any are low (<35psi)
+                }else{
+                    tt.foreground(LightGrey);
+                }
                 tt.locate(10,206);
                 printf("%3.1f\n",(float)msg.data[2]/4);
             }
             if(msg.data[6]&0x40){
+                if(msg.data[3]<minTirePressure){
+                    tt.foreground(Orange); // Hi-light if any are low (<35psi)
+                }else{
+                    tt.foreground(LightGrey);
+                }
                 tt.locate(90,206);
                 printf("%3.1f\n",(float)msg.data[3]/4);
             }
             if(msg.data[6]&0x20){
+                if(msg.data[4]<minTirePressure){
+                    tt.foreground(Orange); // Hi-light if any are low (<35psi)
+                }else{
+                    tt.foreground(LightGrey);
+                }
                 tt.locate(170,206);
                 printf("%3.1f\n",(float)msg.data[4]/4);
             }
             if(msg.data[6]&0x10){
+                if(msg.data[5]<minTirePressure){
+                    tt.foreground(Orange); // Hi-light if any are low (<35psi)
+                }else{
+                    tt.foreground(LightGrey);
+                }
                 tt.locate(250,206);
                 printf("%3.1f\n",(float)msg.data[5]/4);
             }