Added state processing stage
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user