Compare commits
3 Commits
8d119b4c14
...
368c530602
Author | SHA1 | Date | |
---|---|---|---|
368c530602 | |||
cad8fe1186 | |||
3e38106f3d |
@ -70,7 +70,7 @@ int PCA9685_run_test(void)
|
||||
return 1;
|
||||
} else {
|
||||
DISPLAY_SET_CURSOR(1, 1);
|
||||
display_write_data_seq("OK OUT ENABLED");
|
||||
display_write_data_seq("OK");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ void button_init_and_test(void)
|
||||
for (size_t i = 0; i < 5; i++) {
|
||||
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) {
|
||||
pressed_elements |= 0x20;
|
||||
@ -340,8 +340,6 @@ int main(void)
|
||||
cleanup_functions[display_current_frame-1]();
|
||||
|
||||
display_to_direct();
|
||||
|
||||
HAL_Delay(150);
|
||||
}
|
||||
|
||||
// render final result to first framebuffer
|
||||
|
Loading…
x
Reference in New Issue
Block a user