With an Arduino UNO R3, I was wanting to monitor 3 different inputs on 3 pins. With an interrupt I would have the ISR use a switch statement to call different functions.
I wanted to read a port register (Port B?) and using byte (low or high) read the value and use that for the cases.
My question is how do I read a port IO register and not just a pin read
I realised after posting the first link that although it mentioned the registers there was no detail on how to read individual bits. I considered editing the post to add the second link but you never know whether someone has already read a post so decided to add a second one