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:
- 2:cc8e091fd975
- Parent:
- 0:dff187a80020
- Child:
- 4:4af895bb2979
--- a/WS281X.cpp	Wed Jul 27 08:12:04 2016 +0000
+++ b/WS281X.cpp	Wed Jul 27 14:42:36 2016 +0000
@@ -173,16 +173,16 @@
 #if defined(TARGET_STM32F7)
 // DISCO-F746NG (216MHz), NUCLEO-F746ZG (216MHz)
 #define T0H             (35)
-#define T0L             (128-T0H)
+#define T0L             (125-T0H)
 #define T1H             (100)
-#define T1L             (128-T1H)
+#define T1L             (125-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_TLOW()
-#define DELAY_NEXT()    _delay(35)
+#define DELAY_NEXT()    _delay(30)
 
 inline __attribute__((always_inline))
 void WS281X::_delay(int value)
@@ -329,14 +329,14 @@
 }
 
 // 指定色でバッファを埋める
-void WS281X::clear(uint32_t color)
+void WS281X::clear(RGBColor color)
 {
     _pixels[0] = color;
     repeatBlock(1);
 }
 
 // 指定色でバッファを埋めた後表示
-void WS281X::show(uint32_t color)
+void WS281X::show(RGBColor color)
 {
     clear(color);
     show();