Fixing last UART interface bugs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "LCD_driver.h"
|
||||
|
||||
#define COLOR_PRIMARY 0xfdaa
|
||||
#define COLOR_PRIMARY 0xfd01
|
||||
#define COLOR_SECONDARY 0x667f
|
||||
#define COLOR_SUCCESS 0x3766
|
||||
#define COLOR_ERROR 0xf226
|
||||
@@ -11,11 +11,14 @@
|
||||
#define COLOR_BG 0x0000
|
||||
#define COLOR_OFF 0x0000
|
||||
|
||||
#define FAULT_CODE_MAX 27
|
||||
|
||||
|
||||
|
||||
void run_dashboard_loop();
|
||||
void init();
|
||||
|
||||
void update_values_setup();
|
||||
void update_values();
|
||||
void update_adc();
|
||||
|
||||
|
||||
@@ -36,7 +39,7 @@ void draw_power_bars(int16_t duty);
|
||||
|
||||
// Displays the huge speed counter with avg and max values.
|
||||
// Speed from COMM_GET_VALUES_SETUP, scale 1000
|
||||
void draw_speed(int32_t speed);
|
||||
void draw_speed(int32_t speed, uint8_t fault_code);
|
||||
|
||||
// Displays Current, Duty, Watts
|
||||
// Current from COMM_GET_VALUES, scale 100
|
||||
|
||||
Reference in New Issue
Block a user