
updated 7seg controls for new 7 seg boards
Dependencies: PixelArray WS2812 mbed
Fork of frdm_pong_table_controller by
Revision 12:7f428ce8ab35, committed 2017-08-06
- Comitter:
- DanGibbons
- Date:
- Sun Aug 06 11:53:00 2017 +0000
- Parent:
- 11:4a73fdc60de6
- Commit message:
- Reduced LED Brightness
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 4a73fdc60de6 -r 7f428ce8ab35 main.cpp --- a/main.cpp Tue Aug 01 17:10:22 2017 +0000 +++ b/main.cpp Sun Aug 06 11:53:00 2017 +0000 @@ -39,9 +39,9 @@ idleButton.setSampleFrequency( 10000 ); // Set brightness of the 4 LED strips - robotScoreLED.setII(0x60); + robotScoreLED.setII(0x30); robotScoreLED.useII(WS2812::GLOBAL); - playerScoreLED.setII(0x60); + playerScoreLED.setII(0x30); playerScoreLED.useII(WS2812::GLOBAL); // Set scores to 0 @@ -574,7 +574,7 @@ if(isRobotWinner == false) { // dim brightness of the robot score because it lost - robotScoreLED.setII(0x20); + robotScoreLED.setII(0x10); robotScoreLED.useII(WS2812::GLOBAL); robotScoreLED.write(robotScorePx.getBuf()); // rewrite buffer to change brightness @@ -587,13 +587,13 @@ DrainAnimation(true,false,true,true); // drain both scores away with the player score in random colours // reset robot score brightness - robotScoreLED.setII(0x60); + robotScoreLED.setII(0x30); robotScoreLED.useII(WS2812::GLOBAL); } else { // dim brightness of the player score because they lost - playerScoreLED.setII(0x20); + playerScoreLED.setII(0x10); playerScoreLED.useII(WS2812::GLOBAL); playerScoreLED.write(playerScorePx.getBuf()); // rewrite buffer to change brightness @@ -606,7 +606,7 @@ DrainAnimation(true,true,true,false); // drain both scores away with the robot score in random colours // reset player score brightness - playerScoreLED.setII(0x60); + playerScoreLED.setII(0x30); playerScoreLED.useII(WS2812::GLOBAL); }