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:
- 29:a76075c853ee
- Parent:
- 26:ac5d0e18c7b6
- Child:
- 30:52e9205a8059
--- a/WS2811.cpp Fri Jan 03 16:12:56 2014 +0000
+++ b/WS2811.cpp Fri Jan 03 19:17:24 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(350);
-static const uint32_t tpm_p1_period = NSEC_TO_TICKS(700);
+static const uint32_t tpm_p0_period = NSEC_TO_TICKS(250);
+static const uint32_t tpm_p1_period = NSEC_TO_TICKS(650);
enum DMA_MUX_SRC {
DMA_MUX_SRC_TPM0_CH_0 = 24,

Generic WS2811/WS2812