fixed version only white

Dependents:   AB2lab5

Files at this revision

API Documentation at this revision

Comitter:
taeyeobyeo
Date:
Wed Jun 12 13:21:49 2019 +0000
Parent:
2:6e647820f587
Commit message:
fixed

Changed in this revision

WS2812.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WS2812.cpp	Thu Feb 12 20:24:15 2015 +0000
+++ b/WS2812.cpp	Wed Jun 12 13:21:49 2019 +0000
@@ -91,22 +91,14 @@
         j = 0;
         if (__transmitBuf[i]){
             __gpo = 1;
-            for (; j < __oneHigh; j++) {
-                __nop();
-            }
+            wait_us(0.8);
             __gpo = 0;
-            for (; j < __oneLow; j++) {
-                __nop();
-            }
+            wait_us(0.45);
         } else {
             __gpo = 1;
-            for (; j < __zeroHigh; j++) {
-                __nop();
-            }
+            wait_us(0.4);
             __gpo = 0;
-            for (; j < __zeroLow; j++) {
-                __nop();
-            }
+            wait_us(0.85);
         }
     }