nucleo version

Fork of PololuLedStrip by David Grayson

Files at this revision

API Documentation at this revision

Comitter:
michaeljkoster
Date:
Wed Dec 24 19:01:54 2014 +0000
Parent:
22:7a2bda46a606
Commit message:
Updates for Nucleo F411RE

Changed in this revision

PololuLedStrip.cpp Show annotated file Show diff for this revision Revisions of this file
PololuLedStrip.h 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 7a2bda46a606 -r aa89fb2a5769 PololuLedStrip.cpp
--- a/PololuLedStrip.cpp	Wed Dec 24 18:15:59 2014 +0000
+++ b/PololuLedStrip.cpp	Wed Dec 24 19:01:54 2014 +0000
@@ -28,8 +28,8 @@
         // will not overflow in the worst case (smallest possible f_mhz).
         //led_strip_write_delays[0] = 750*f_mhz/1000 - 33;
         //led_strip_write_delays[1] = 550*f_mhz/1000 - 20;    
-        led_strip_write_delays[0] = 28; // for Nucleo F411RE
-        led_strip_write_delays[1] = 20;    
+        led_strip_write_delays[0] = 23; // for Nucleo F411RE
+        led_strip_write_delays[1] = 27;    
     }
  
     // Convert from units of cycles to units of half-cycles; it makes the assembly faster.   
diff -r 7a2bda46a606 -r aa89fb2a5769 PololuLedStrip.h
--- a/PololuLedStrip.h	Wed Dec 24 18:15:59 2014 +0000
+++ b/PololuLedStrip.h	Wed Dec 24 19:01:54 2014 +0000
@@ -18,7 +18,7 @@
     #endif
 
 //    extern "C" int led_strip_write_color(rgb_color *, volatile uint32_t * set, volatile uint32_t * clear, uint32_t mask);
-    extern "C" int led_strip_write_color(rgb_color *, volatile uint16_t * set, volatile uint16_t * clear, uint32_t mask);
+    extern "C" int led_strip_write_color(rgb_color *, volatile uint16_t * set, volatile uint16_t * clear, uint32_t mask);//F411RE
 
     /** This class lets you control the addressable RGB LED strips from Pololu</a>,
     or any other LED strip based on the TM1804 chip. */
diff -r 7a2bda46a606 -r aa89fb2a5769 led_strip_write_color.s
--- a/led_strip_write_color.s	Wed Dec 24 18:15:59 2014 +0000
+++ b/led_strip_write_color.s	Wed Dec 24 19:01:54 2014 +0000
@@ -57,6 +57,7 @@
     nop
     nop
 
+    ; More delay for longer 1H pulse F411RE
     nop
     nop
     nop