Added state processing stage

This commit is contained in:
2026-04-27 12:11:41 +02:00
parent 1fd0a56064
commit 787bf50957
8 changed files with 57 additions and 44 deletions
+2 -1
View File
@@ -39,7 +39,7 @@ void core0_init(void) {
puts("PWM Initialized.");
// Synth
synth_init();
synth_init(&state);
puts("Synth Initialized.");
}
@@ -73,6 +73,7 @@ void core1_init(void) {
noreturn void core1_loop(void) {
while (1) {
update_inputs(&input);
update_state(&state, &input);
printf("%d %f\n", input.buttons[0], input.pots[0]);
printf("%d\n", input.buttons[1]);
printf("%d\n", input.buttons[2]);