Write once to POTGO. The built-in pull-up resistor will apply +5v to the pin. When you read POTINP (POTGOR in newer HRM) the relevant data bit will be 0 if that pin is currently grounded via a button, or 1 if not, that's all there is to it.
No idea about Megadrive or CD32 pads.
|