diff --git a/main.c b/main.c index d0128ab..e9224b0 100644 --- a/main.c +++ b/main.c @@ -61,7 +61,8 @@ void core1_main(void) { while (1) { update_buttons(); 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); } } diff --git a/mux.c b/mux.c index b9a1086..29c000e 100644 --- a/mux.c +++ b/mux.c @@ -19,7 +19,7 @@ void update_inputs() { for(uint8_t j = 0; j < 8;j++) { set_mux_addr(j); sleep_ms(1); // let multiplexor multiplex - state.array[(i+1)*j]= adc_read(); + state.array[i*8 + j]= adc_read()/4096.0f; } } }