Speed up zero neopixel pulses.

SK6812 on 5v is pickier than WS2812 on 5v.

Hopefully fixes #1083.
This commit is contained in:
Scott Shawcroft 2018-08-20 17:04:46 -07:00
parent cac760aa6f
commit 44de3d49a8
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -109,7 +109,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* digitalinout,
asm("nop; nop;");
#endif
#ifdef SAMD51
delay_cycles(3);
delay_cycles(1);
#endif
if((p & bitMask) != 0) {
// This is the high delay unique to a one bit.
@ -129,7 +129,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* digitalinout,
asm("nop; nop;");
#endif
#ifdef SAMD51
delay_cycles(3);
delay_cycles(1);
#endif
}
if((bitMask >>= 1) != 0) {