APA102 (Adafruit DotStar LED Strip) see: https://developer.mbed.org/users/okini3939/notebook/led_strip/

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- 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;