WS2812B

Dependents:   high speed light Bracelet

Fork of PololuLedStrip by David Grayson

Files at this revision

API Documentation at this revision

Comitter:
jacob_yan
Date:
Wed Jul 23 01:29:44 2014 +0000
Parent:
21:87fd6273e0ff
Commit message:
tst r6, r6

Changed in this revision

PololuLedStrip.cpp Show annotated file Show diff for this revision Revisions of this file
led_strip_write_color.s Show annotated file Show diff for this revision Revisions of this file
diff -r 87fd6273e0ff -r 2fcd4e3cd8ac PololuLedStrip.cpp
--- a/PololuLedStrip.cpp	Tue Nov 26 23:05:08 2013 +0000
+++ b/PololuLedStrip.cpp	Wed Jul 23 01:29:44 2014 +0000
@@ -38,7 +38,7 @@
 
 PololuLedStrip::PololuLedStrip(PinName pinName)
 {
-    gpio_init(&gpio, pinName, PIN_OUTPUT);
+    gpio_init(&gpio, pinName);
 }
 
 void PololuLedStrip::write(rgb_color * colors, unsigned int count)
diff -r 87fd6273e0ff -r 2fcd4e3cd8ac led_strip_write_color.s
--- a/led_strip_write_color.s	Tue Nov 26 23:05:08 2013 +0000
+++ b/led_strip_write_color.s	Wed Jul 23 01:29:44 2014 +0000
@@ -65,7 +65,7 @@
 
     delay #0
 
-    tst r6, r8
+    tst r6, r6          ;
     ldr r4, =0x80000000
     tst r6, r4
     beq delay1