From: Nathael Pajani Date: Thu, 24 Sep 2020 11:10:37 +0000 (+0200) Subject: Fix WS2812 timmings X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=6c2960b536daa5426881a97d92f16b85f2052b4f;p=soft%2Flpc122x%2Fcore Fix WS2812 timmings --- diff --git a/extdrv/ws2812.c b/extdrv/ws2812.c index a9c5b0b..615031f 100644 --- a/extdrv/ws2812.c +++ b/extdrv/ws2812.c @@ -78,8 +78,6 @@ static void ws2812_bit_sender(struct ws2812_conf* ws2812) nop(); nop(); nop(); - nop(); - nop(); /* "low" time : 800ns */ gpio_port->clear = gpio_bit; nop(); @@ -89,9 +87,8 @@ static void ws2812_bit_sender(struct ws2812_conf* ws2812) nop(); nop(); nop(); - nop(); } else { - /* "high" time : 700ns */ + /* "high" time : 800ns */ gpio_port->set = gpio_bit; nop(); nop(); @@ -109,10 +106,11 @@ static void ws2812_bit_sender(struct ws2812_conf* ws2812) nop(); nop(); nop(); + nop(); + nop(); /* "low" time : 600ns */ gpio_port->clear = gpio_bit; nop(); - nop(); } /* Move to the next bit */