Back to engineering archive

Record 001 / Lighting and interaction

Interactive tic tac toe LED controller

LED game logic for player selection, matrix addressing and win detection. The project includes input debouncing and cell selection routines.

Firmware development
WS2812Embedded C++Game logicInput debouncing
Project design or interface view — Interactive tic tac toe LED controller
Project design or interface view — Interactive tic tac toe LED controller

Technical notes

Input debouncing

The debounce() routine addresses the first interaction problem: a mechanical press can create several electrical transitions. Input conditioning belongs before game logic, where duplicate events could otherwise become duplicate moves.

Cell selection

traverseMatrix() and selectLED() separate matrix navigation from LED cell selection.

Win detection

checkWin() evaluates the game board separately from pixel updates.

Engineering archiveArchive record

Project enquiries

Discuss your project.

Tell us what you’re developing and where you need engineering support.

Discuss your project