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:
- 44:d89e5c59aeb0
- Parent:
- 36:0fe7917a832a
- Child:
- 46:2374900f8845
--- a/WS281X.cpp Mon Dec 05 22:28:49 2016 +0000
+++ b/WS281X.cpp Fri Dec 16 23:29:34 2016 +0000
@@ -231,6 +231,22 @@
#define DELAY_NEXT() do{ _nop8(); }while(0)
#endif
+#if defined(TARGET_NUCLEO_F411RE)
+// NUCLEO-F411RE (96MHz)
+#define USE_DELAYFUNC 1
+#define T0H (10)
+#define T0L (31-T0H)
+#define T1H (21)
+#define T1L (31-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-2)
+#define DELAY_NEXT() _delay(16)
+#endif
+
#if defined(TARGET_NUCLEO_F446RE)
// NUCLEO-F446RE (180MHz)
#define USE_DELAYFUNC 1