Have you seen how the proposed technique compares to the digital write fast library? That's optimised for the case where pin numbers are compile-time constants, which avoids a lot of the overhead in the digitalWrite/Read functions.
Have you seen how the proposed technique compares to the digital write fast library? That's optimised for the case where pin numbers are compile-time constants, which avoids a lot of the overhead in the digitalWrite/Read functions.