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.
Dependencies: Multi_WS2811 mbed MMA8451Q
Fork of WS2811 by
Diff: WS2811.cpp
- Revision:
- 26:ac5d0e18c7b6
- Parent:
- 25:751c89f7e654
- Child:
- 29:a76075c853ee
--- a/WS2811.cpp Thu Jan 02 19:42:14 2014 +0000
+++ b/WS2811.cpp Thu Jan 02 19:44:43 2014 +0000
@@ -51,8 +51,8 @@
#define NSEC_TO_TICKS(nsec) ((nsec)*48/1000)
static const uint32_t CLK_NSEC = 1250;
static const uint32_t tpm_period = NSEC_TO_TICKS(CLK_NSEC);
-static const uint32_t tpm_p0_period = NSEC_TO_TICKS(CLK_NSEC / 3);
-static const uint32_t tpm_p1_period = NSEC_TO_TICKS(CLK_NSEC * 2 / 3);
+static const uint32_t tpm_p0_period = NSEC_TO_TICKS(350);
+static const uint32_t tpm_p1_period = NSEC_TO_TICKS(700);
enum DMA_MUX_SRC {
DMA_MUX_SRC_TPM0_CH_0 = 24,

Generic WS2811/WS2812