updated 7seg controls for new 7 seg boards
Dependencies: PixelArray WS2812 mbed
Fork of frdm_pong_table_controller by
Diff: main.cpp
- Revision:
- 3:51604b5710f1
- Parent:
- 2:ff409472bc08
- Child:
- 4:2e80bd814f57
--- a/main.cpp Tue Jul 04 15:51:03 2017 +0000 +++ b/main.cpp Wed Jul 05 11:10:38 2017 +0000 @@ -343,9 +343,22 @@ if(hasRobotScored == true) { robotScore++; WriteScores(); + + // ADD GOAL PATTERN FOR ROBOT - FLASH??? + /*wait(1); + robotScorePx.SetAll(0); + wait(1); + WriteScores();*/ + } else { playerScore++; WriteScores(); + + // ADD GOAL PATTERN FOR PLAYER - FLASH??? + /*wait(1); + playerScorePx.SetAll(0); + wait(1); + WriteScores();*/ } wait(1); @@ -367,14 +380,14 @@ isRobotWinner = false; pc.printf("Player won!"); - + // ADD WINNING PATTERN FOR PLAYER } else { pc.printf("Robot won!"); - + // ADD WINNING PATTERN FOR ROBOT }