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 7:0611499dd15d, committed 2011-06-18
- Comitter:
- wertyfrog
- Date:
- Sat Jun 18 01:25:36 2011 +0000
- Parent:
- 6:49a99002250d
- Child:
- 8:28d3f6703e22
- Commit message:
- first public
Changed in this revision
| ws2801.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ws2801.h Sat Jun 18 01:23:37 2011 +0000
+++ b/ws2801.h Sat Jun 18 01:25:36 2011 +0000
@@ -51,13 +51,13 @@
0x00ff33,0x00ff66,0x00ff99,0x00ffcc,0x00ffff,0x00ccff,0x0099ff,0x0066ff,
0x0033ff,0x0000ff,0x3300ff,0x6600ff,0x9900ff,0xcc00ff,0x9900ff,0x6600ff
};
-//***************************************************************************************
+
void move(void){
int temp = rainbow[31];
for (int x = (STRIP_LENGTH - 1) ; x > 0 ; x--) rainbow[x] = rainbow[x - 1];
rainbow[0] = temp;
}
-//***************************************************************************************
+
void pulse(void){
if(dir)
{
@@ -70,7 +70,7 @@
if(level <= 5)dir = 1;
}
}
-//***************************************************************************************
+
int main() {
mystrip.level(level);
while(1)
