-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: Patch codal-nrf52 with ws2812b timing patch.
From codal-nrf52 commit 84b1aeec870addcfb6027a924dbfe83f1f10c6db Signed-off-by: Damien George <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/inc/WS2812B.h b/inc/WS2812B.h | ||
index 3a6deb6..a24967b 100644 | ||
--- a/inc/WS2812B.h | ||
+++ b/inc/WS2812B.h | ||
@@ -32,9 +32,9 @@ DEALINGS IN THE SOFTWARE. | ||
|
||
#define WS2812B_BUFFER_SIZE 256 | ||
#define WS2812B_PAD (0x8000) | ||
-#define WS2812B_LOW (0x8000 | 6) | ||
-#define WS2812B_HIGH (0x8000 | 10) | ||
-#define WS2812B_PWM_FREQ 500000 | ||
+#define WS2812B_LOW (0x8000 | 5) // 320ns | ||
+#define WS2812B_HIGH (0x8000 | 12) // 760ns | ||
+#define WS2812B_PWM_FREQ 800000 | ||
#define WS2812B_ZERO_PADDING 50 | ||
|
||
/** |