Tic-tac-toe Game Based on Arduino and HMI
Materials required for the experiment
Stone STWI070WT-01 tft lcd display
The system principle
Specify the first tap on the screen must be O, the second tap on the screen is X, has been doing this cycle. Set 8 arrays to store the number of O and X in each row, column and diagonal of each grid, as long as there are three of the same mark is the victory, then there will be a flashing red box to prove the victory of the row, column or diagonal, and then tap reset to start the game again.
Simple connection diagram
GUI design
Video demo