Skip to content

Commit

Permalink
Begin Centre Console Buzzer Project
Browse files Browse the repository at this point in the history
  • Loading branch information
ejramas committed Apr 1, 2024
1 parent 0346df0 commit 1abf8cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions projects/centre_console/src/update_dashboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ void update_drive_output(uint32_t notif) {
set_cc_power_control_hazard_enabled(s_hazard_state);
}

void update_buzzer() {
if (get_battery_status_fault() && (1 << 15)) {
// set PB7 PMW high
} else if ((get_battery_status_fault() && (1 << 14))) {
// set PB7 PMW low
}
}

StatusCode dashboard_init(void) {
Pca9555GpioSettings settings = {
.direction = PCA9555_GPIO_DIR_OUT,
Expand Down

0 comments on commit 1abf8cc

Please sign in to comment.