Suga koubou
/
DotStar
APA102 (Adafruit DotStar LED Strip) see: https://developer.mbed.org/users/okini3939/notebook/led_strip/
Revision 1:8ad764aed49f, committed 2016-03-17
- Comitter:
- okini3939
- Date:
- Thu Mar 17 03:09:59 2016 +0000
- Parent:
- 0:27f99fa5a413
- Commit message:
- fix;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 27f99fa5a413 -r 8ad764aed49f main.cpp --- a/main.cpp Thu Mar 17 03:08:32 2016 +0000 +++ b/main.cpp Thu Mar 17 03:09:59 2016 +0000 @@ -13,7 +13,7 @@ int led_buf[LED_NUM]; -void dotsStar () { +void dotStar () { int i; // start frame @@ -44,7 +44,7 @@ c = ((color + i) % 7) + 1; led_buf[i] = (c & 4 ? 0xff0000 : 0) | (c & 2 ? 0xff00 : 0) | (c & 1 ? 0xff : 0); } - dotsStar(); + dotStar(); myled = !myled; color ++; if (color > 7) color = 1;