Redefining analogue pins during an interrupt

Hi all,

I'm new to this so sorry if its a stupid question!

I'm running short on analogue pins for an interrupt I need to run. Can I define a pin for one use and then define it for another use during the interrupt and have it revert back to the original use once the interrupt has ended?


You can perform an analogRead on a pin that is defined as a digital pin.


I presume that is what you are looking for.