![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
1D-Pong game based on a LED strip with 150 LPD6803-controlled pixels. Game keeps score for 'best-of-21' game. Written for KL25Z
Diff: main.cpp
- Revision:
- 4:119537f0ff8e
- Parent:
- 3:a2b58da5c03b
- Child:
- 5:d2e819018807
--- a/main.cpp Wed Aug 21 18:32:16 2013 +0000 +++ b/main.cpp Wed Aug 21 18:35:43 2013 +0000 @@ -37,15 +37,16 @@ Ticker updater; Ticker paddlepos; uint8_t ledcounter; - updater.attach(UpdateLEDstrip, .05); + updater.attach(UpdateLEDstrip, .02); paddlepos.attach(UpdatePaddle, .03); ledstrip.format(8,0); //15 bits, mode '0' - ledstrip.frequency(100000); - for(ledcounter = 0; ledcounter < NUMBER_OF_PIXELS; ledcounter++) { + ledstrip.frequency(1000000); + for(ledcounter = 0; ledcounter < NUMBER_OF_PIXELS; ledcounter++) {//turn off leds write_led(&totalstrip[ledcounter], 0,0,0); } while(1) { //PaddleDemo(2,255,10,100); + Score(0,0); Score(1,1); Score(0,1);