Firmware · Bits that move pins

Testing an input bit

Firmware reads buttons and sensors by checking individual bits in an input register, and small mistakes in the test can quietly break it.