Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 4:119537f0ff8e, committed 2013-08-21
- Comitter:
- vsluiter
- Date:
- Wed Aug 21 18:35:43 2013 +0000
- Parent:
- 3:a2b58da5c03b
- Child:
- 5:d2e819018807
- Commit message:
- Increased SPI frequency, and update rate
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);