Thanks I knew there was a simple line of code. ![]()
Iāve often thought that there should be an API to fetch all the digital pins at one time, on smallish arduinos (nominally 14 bits, and another call to get the 6 analog pins.)
It could get relatively complex when the pin mapping is strange (say, nano every), but you could get away with a lot of strangeness and still be faster than 14 calls to digitalread.