new battery bar

Dependencies:   CAN_IDs CanControl Dashboard PinDetect PowerControl mbed-rtos mbed

Revision:
24:d848de26452b
Parent:
23:970a5603da43
Child:
27:6ffb44623906
diff -r 970a5603da43 -r d848de26452b main.cpp
--- a/main.cpp	Tue May 23 17:30:09 2017 +0000
+++ b/main.cpp	Tue May 23 19:25:12 2017 +0000
@@ -263,6 +263,7 @@
                 dash.checkTransmitter(transmitting);
                 dash.displayVelocity(velocity);
                 dash.displayThrottle(abs(throttle_power), reverse);
+                dash.updateThrottleBar(2, abs(throttle_power), 50, 20, 20, 5);
                 //displayAdvisedThrottle(advised_throttle_power);
                 dash.updatePowerBars(power_out, power_in);
 
@@ -322,9 +323,9 @@
         if (current_menu > 2) current_menu = 0;
         
         //clear displays and reset settings
-        dash.powerOnOLED(1);
-        dash.powerOnOLED(2);
-        dash.powerOnOLED(3);        
+        dash.clearDisplay(1);
+        dash.clearDisplay(2);
+        dash.clearDisplay(3);       
         
     } else if (menu_button == 1) menu_button_pressed = false;
     //timeout for back to home screen