Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller
Dependencies: SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed
Fork of CANary by
Diff: displayModes.cpp
- Revision:
- 35:5acbd8a64a89
- Parent:
- 34:4751a8259b18
- Child:
- 36:dbd39c315258
--- a/displayModes.cpp Wed Mar 20 13:57:00 2013 +0000 +++ b/displayModes.cpp Thu Mar 21 12:05:22 2013 +0000 @@ -85,7 +85,7 @@ tt.set_font((unsigned char*) Arial28x28); tt.locate(10,10); printf("%4d gids\n",gids); - tt.locate(10,200); + tt.locate(20,40); printf("%4.1f kWh\n",(float)gids*0.08); tt.set_font((unsigned char*) SCProSB31x55); tt.foreground(Green); @@ -107,6 +107,12 @@ printf("%4.1fV\n",(float)packV/2); lpackV=packV; } + if(force||tick){ + tt.foreground(Yellow); + tt.set_font((unsigned char*) Arial28x28); + tt.locate(20,200); + printf("%4.2fV \n",accV); + } } void braking (bool force, bool prdata=false){