Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: WS281X.cpp
- Revision:
- 5:8e6835a94e10
- Parent:
- 4:4af895bb2979
- Child:
- 6:5aff0da4b663
--- a/WS281X.cpp Thu Jul 28 17:41:52 2016 +0000
+++ b/WS281X.cpp Fri Jul 29 04:22:53 2016 +0000
@@ -154,7 +154,7 @@
#define _nop16() _nop8(); _nop8()
#if defined(TARGET_LPC82X)
-// LPC824-30MHz
+// LPCXpresso824-MAX (30MHz)
#define DELAY_T0H() do{ _nop2(); }while(0)
#define DELAY_T1H() do{ _nop6(); }while(0)
#define DELAY_TLOW() do{ _nop6(); }while(0)
@@ -164,7 +164,8 @@
#endif
#if defined(TARGET_STM32F0)
-// STM32F030R8-48MHz
+// NUCLEO-F030R8 (48MHz)
+// NUCLEO-F070RB (48MHz)
#define DELAY_T0H() do{ _nop8(); _nop4(); }while(0)
#define DELAY_T1H() do{ _nop8(); _nop8(); }while(0)
#define DELAY_TLOW() do{ _nop16(); }while(0)
@@ -176,15 +177,15 @@
#if defined(TARGET_NUCLEO_F746ZG)
// NUCLEO-F746ZG (216MHz)
#define T0H (35)
-#define T0L (110-T0H)
+#define T0L (130-T0H)
#define T1H (75)
-#define T1L (110-T1H)
+#define T1L (130-T1H)
#define DELAY_T0H() _delay(T0H)
#define DELAY_T1H() _delay(T1H-T0H)
#define DELAY_TLOW() _delay(T1L)
#define DELAY_TLOW2() //DELAY_TLOW()
-#define DELAY_SPACE() _delay(T1L+5)
+#define DELAY_SPACE() _delay(T1L+20)
#define DELAY_NEXT() _delay(50)
#endif