remove uses of deprecated watch_gpio functions

This commit is contained in:
joeycastillo
2024-10-07 09:01:21 -04:00
parent ab861d81d1
commit 4933a84a2c
14 changed files with 43 additions and 46 deletions

View File

@@ -123,7 +123,7 @@ bool wareki_loop(movement_event_t event, void *context) {
//printf("tick %d\n",state->disp_year );
if (_alarm_button_press && watch_get_pin_level(BTN_ALARM)){
if (_alarm_button_press && HAL_GPIO_BTN_ALARM_read()){
//printf("ALARM ON\n");
}
else{
@@ -131,7 +131,7 @@ bool wareki_loop(movement_event_t event, void *context) {
_alarm_button_press = false;
}
if (_light_button_press && watch_get_pin_level(BTN_LIGHT)){
if (_light_button_press && HAL_GPIO_BTN_LIGHT_read()){
//printf("LIGHT ON\n");
}
else{