Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed
Fork of CANary by
Diff: displayModes.cpp
- Revision:
- 95:248b3c25a7df
- Parent:
- 94:c3a14b3975d6
- Child:
- 96:a6c6a6fd1d28
diff -r c3a14b3975d6 -r 248b3c25a7df displayModes.cpp
--- a/displayModes.cpp Fri May 03 11:25:03 2013 +0000
+++ b/displayModes.cpp Fri May 03 12:18:10 2013 +0000
@@ -72,7 +72,7 @@
void mainDisplay (bool force, bool showButtons){
unsigned short gids, SOC, packV;
- static unsigned short lgids=0, lSOC=0, lpackV=0, maxPS;
+ static unsigned short lgids=0, lSOC=0, lpackV=0, lbattTemp_x4=99, maxPS=0;
static float lkW=0, laccV=0, lmpkWh=0;
CANMessage msg;
@@ -117,6 +117,11 @@
printf("%4.1fV \n",(float)packV/2);
lpackV=packV;
}
+ if(battTemp_x4!=lbattTemp_x4){
+ tt.locate(200,170);
+ printf("%4.1fF \n",(float)battTemp_x4*9/20+32);
+ lbattTemp_x4=battTemp_x4;
+ }
if(force||accV!=laccV){
tt.locate(20,200);
printf("%3.1fV \n",accV);
