diff options
Diffstat (limited to 'drivers/chibios/ws2812.c')
-rw-r--r-- | drivers/chibios/ws2812.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/chibios/ws2812.c b/drivers/chibios/ws2812.c index 2c2d9fb2d..5917b7f0e 100644 --- a/drivers/chibios/ws2812.c +++ b/drivers/chibios/ws2812.c | |||
@@ -51,7 +51,7 @@ | |||
51 | 51 | ||
52 | // The reset gap can be 6000 ns, but depending on the LED strip it may have to be increased | 52 | // The reset gap can be 6000 ns, but depending on the LED strip it may have to be increased |
53 | // to values like 600000 ns. If it is too small, the pixels will show nothing most of the time. | 53 | // to values like 600000 ns. If it is too small, the pixels will show nothing most of the time. |
54 | #define RES 10000 // Width of the low gap between bits to cause a frame to latch | 54 | #define RES (1000 * WS2812_TRST_US) // Width of the low gap between bits to cause a frame to latch |
55 | 55 | ||
56 | void sendByte(uint8_t byte) { | 56 | void sendByte(uint8_t byte) { |
57 | // WS2812 protocol wants most significant bits first | 57 | // WS2812 protocol wants most significant bits first |