reading AIN at boot

Does anyone know how to code “read the value of J5 pin0 at the start up of the midibox” ? the goal is to read the pot value without having to move it

Does anyone know how to code “read the value of J5 pin0 at the start up of the midibox” ? the goal is to read the pot value without having to move it

I would take a look at the MIOS_AIN_PinGet(pin) function. You can call it from Init() and it returns the value of the selected pin. There are also 7bit and seperate LSB/USB functions.

Cheers

Phil