new battery bar
Dependencies: CAN_IDs CanControl Dashboard PinDetect PowerControl mbed-rtos mbed
Revision 24:d848de26452b, committed 2017-05-23
- Comitter:
- Marrkk_92
- Date:
- Tue May 23 19:25:12 2017 +0000
- Parent:
- 23:970a5603da43
- Child:
- 25:fcc107eb51d2
- Commit message:
- new battery bar
Changed in this revision
Dashboard.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Dashboard.lib Tue May 23 17:30:09 2017 +0000 +++ b/Dashboard.lib Tue May 23 19:25:12 2017 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/zathorix/code/Dashboard/#3047f8d8321b +https://developer.mbed.org/users/Marrkk_92/code/Dashboard/#051411e193b0
--- 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