nucleo version
Fork of PololuLedStrip by
Revision 23:aa89fb2a5769, committed 2014-12-24
- Comitter:
- michaeljkoster
- Date:
- Wed Dec 24 19:01:54 2014 +0000
- Parent:
- 22:7a2bda46a606
- Commit message:
- Updates for Nucleo F411RE
Changed in this revision
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