Compare commits

...

3 Commits

2 changed files with 2 additions and 4 deletions

View File

@ -70,7 +70,7 @@ int PCA9685_run_test(void)
return 1; return 1;
} else { } else {
DISPLAY_SET_CURSOR(1, 1); DISPLAY_SET_CURSOR(1, 1);
display_write_data_seq("OK OUT ENABLED"); display_write_data_seq("OK");
return 0; return 0;
} }

View File

@ -226,7 +226,7 @@ void button_init_and_test(void)
for (size_t i = 0; i < 5; i++) { for (size_t i = 0; i < 5; i++) {
pressed_elements >>= 1; pressed_elements >>= 1;
size_t input = !HAL_GPIO_ReadPin(sw_button_locations[i][0], sw_button_locations[i][1]); size_t input = !HAL_GPIO_ReadPin((GPIO_TypeDef *) sw_button_locations[i][0], sw_button_locations[i][1]);
if (input) { if (input) {
pressed_elements |= 0x20; pressed_elements |= 0x20;
@ -340,8 +340,6 @@ int main(void)
cleanup_functions[display_current_frame-1](); cleanup_functions[display_current_frame-1]();
display_to_direct(); display_to_direct();
HAL_Delay(150);
} }
// render final result to first framebuffer // render final result to first framebuffer