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.
Fork of ws2801 by
Revision 1:3e936414d26a, committed 2015-06-10
- Comitter:
- sunsmile2015
- Date:
- Wed Jun 10 10:25:22 2015 +0000
- Parent:
- 0:4d2472ee7b7c
- Commit message:
- fork
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu May 28 14:28:24 2015 +0000
+++ b/main.cpp Wed Jun 10 10:25:22 2015 +0000
@@ -1,8 +1,8 @@
#include "mbed.h"
#define LED_COUNT 22
-DigitalOut gpo(D0);
-DigitalOut led(LED_RED);
+//DigitalOut gpo(D0);
+//DigitalOut led(LED_RED);
SPI spi(D11, D12, D13);
@@ -29,5 +29,25 @@
writeCol(i, 0, 0);
wait(0.01);
}
+
+ for (int i = 0; i <= 0xFF; i++) {
+ writeCol(0, i, 0);
+ wait(0.01);
+ }
+
+ for (int i = 0xFF; i >= 0x00; i--) {
+ writeCol(0, i, 0);
+ wait(0.01);
+ }
+
+ for (int i = 0; i <= 0xFF; i++) {
+ writeCol(0, 0, i);
+ wait(0.01);
+ }
+
+ for (int i = 0xFF; i >= 0x00; i--) {
+ writeCol(0, 0, i);
+ wait(0.01);
+ }
}
}
\ No newline at end of file
