Add mutexes for I2C access in multiple drivers and update cursor handling in char_lcd and wires. Adjust task stack sizes for better resource management.
This commit is contained in:
@@ -23,8 +23,8 @@ void print_wires(WireColor* wires, int editing_idx) {
|
||||
}
|
||||
lcd_print(3, 1, string_buf);
|
||||
|
||||
// TODO: find a way to indicate without a cursor.
|
||||
// lcd_set_cursor_pos(editing_idx+1, 1);
|
||||
lcd_set_cursor_vis(true);
|
||||
lcd_set_cursor_resting_position(1, editing_idx+1);
|
||||
}
|
||||
|
||||
void setup_wires(void) {
|
||||
|
||||
@@ -34,9 +34,6 @@ static void battery_stats() {
|
||||
vTaskDelete(xHandle);
|
||||
}
|
||||
}
|
||||
static void hardware_config() {
|
||||
|
||||
}
|
||||
|
||||
// TODO: remove. This is temperary
|
||||
static void replay_last() {
|
||||
@@ -224,8 +221,8 @@ static void _update_display(uint8_t* digits, uint8_t cursor_pos) {
|
||||
lcd_print(1, 1, str_buf);
|
||||
cursor_pos = MAX(0, MIN(4, cursor_pos));
|
||||
int mapped_cursor_pos = CURSOR_POS_MAP[cursor_pos];
|
||||
// TODO: find some way to indicate without a cursor.
|
||||
// lcd_set_cursor_pos(mapped_cursor_pos, 1);
|
||||
|
||||
lcd_set_cursor_resting_position(1, mapped_cursor_pos);
|
||||
}
|
||||
|
||||
static void set_game_time() {
|
||||
|
||||
Reference in New Issue
Block a user