• Just another thing (not sure if it helps) but instead of storing the pin number in the pin (which isn't really used) you could actually store the mask (1<<b) instead and make the code a bit neater?

About

Avatar for Gordon @Gordon started