View Single Post
Old 13 June 2021, 01:14   #2
Rotareneg
Registered User
 
Rotareneg's Avatar
 
Join Date: Sep 2017
Location: Kansas, USA
Posts: 328
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.
Rotareneg is offline  
 
Page generated in 0.08791 seconds with 10 queries