working with an arduino nano every, i want to use pins a0-a7 as inputs (just because the breakout board groups them neatly in a bunch), to input 2 “nybbles”. the idea is to use 4 pins each to set 2 timers, in the range from 0 to 15. trivial stuff, and i’ve got it all working. (bit fiddling is pretty simple.)
however, the question is, can it be done more elegantly than digital reads, pin by pin? if i could read an entire 8-bit port at once, it would be cleaner and easier to understand.
there is a bewildering array of different ways of referencing pins, but i can’t find a “port”-like definition for pins a0-a7. (those pins actually map into 2 different ports on the 4809 processor, 6 from one and 2 from another.)