Attempts to merge SPI_TFT2 & SPI_TFT_ILI9341

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 mbed

Fork of CANary by Tick Tock

Revision:
175:0357b4159b40
Parent:
174:cd27e80f197d
--- a/utility.cpp	Sun Jan 05 05:02:41 2014 +0000
+++ b/utility.cpp	Fri Feb 07 01:59:53 2014 +0000
@@ -283,8 +283,8 @@
                     j=battData[(BatDataBaseG4*7)+12]*0x100+battData[(BatDataBaseG4*7)+13];
                     if(j<k)k=j;
                     //interpolate from lookup table
-                    unsigned short temp_adc[8] = {1000,589,487,401,365,340,309,000};
-                    float            temp_C[8] = { -27, 13, 23, 32, 36, 39, 43, 76};
+                    unsigned short temp_adc[10] = {1000,720,690,589,487,401,365,340,309,000};
+                    float            temp_C[10] = { -27,  0,  3, 13, 23, 32, 36, 39, 43, 76};
                     char ii=0;
                     while(k<=temp_adc[++ii]) { } // Find section in table
                     maxTemp=(float)(k-temp_adc[ii]);