Archived source flow
Technical notes
Matrix contact handling
The Keypad scanner uses a 4×4 matrix with a 50 ms HOLD setting. HOLD and RELEASED events for three mapped contacts set or clear the cable1, cable2 and cable3 flags.
Local indication
The I2C SSD1306 view shows GOOD/BAD for each flag. One output is high only when all three flags are true; the loop then delays 5 ms. Serial is used only for setup and an allocation-error diagnostic, not an application data-transport path.
Measurement and state limits
The implemented input is library-scanned contact closure. No resistance, cross-wire or calibrated fault-analysis routine is present. Cached key/state variables are reused outside the stateChanged block, so multi-contact updates and physical cable behaviour remain unverified.