Compare commits

...

2 Commits

Author SHA1 Message Date
PoliEcho cbed3f24a1 Merge branch 'master' of https://git.pupes.org/PoliEcho/sint-gauntlet 2026-04-24 18:27:58 +02:00
PoliEcho 5c6a687471 fix analog input 2026-04-24 18:27:29 +02:00
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -61,7 +61,8 @@ void core1_main(void) {
while (1) { while (1) {
update_buttons(); update_buttons();
update_inputs(); update_inputs();
printf("vco_mode: %d, quant_enabled: %d amen_enabled: %d", state.vco_mode,state.quant_enabled,state.amen_enabled); printf("vco_mode: %d, quant_enabled: %d amen_enabled: %d\n", state.vco_mode,state.quant_enabled,state.amen_enabled);
printf("clock_bpm: %f\n",state.clock_bpm);
sleep_ms(1); sleep_ms(1);
} }
} }
+1 -1
View File
@@ -19,7 +19,7 @@ void update_inputs() {
for(uint8_t j = 0; j < 8;j++) { for(uint8_t j = 0; j < 8;j++) {
set_mux_addr(j); set_mux_addr(j);
sleep_ms(1); // let multiplexor multiplex sleep_ms(1); // let multiplexor multiplex
state.array[(i+1)*j]= adc_read(); state.array[i*8 + j]= adc_read()/4096.0f;
} }
} }
} }