I am new to electronics, but have a fair bit of general programming experience, be gentle :)
I have an existing PCB with an STMF103RCT6 where the available pins are GPIO D 0 and GPIO D 1.
I would like to be able to read values of a variable resistor (joystick) - I can see the voltage dropping gradually as I move the joystick forward, but at the moment I am only able to differentiate between full forward (1) and about halfway towards center. I understand that this is where the threshold is crossed, but not sure if there is a way to get at the 'distance' to threshold or the like - I have set the pins to be GPIO_Mode_AIN but not sure if this is a dead end, or if not, where to actually read analog data from.
Do I have options other than involving ADC or adding a capacitor and capturing how long it takes to fill?