Merge pull request #1132 from tannewt/sk6812_3x
Speed up zero neopixel pulses.
This commit is contained in:
commit
4a8dd7e96d
|
@ -109,7 +109,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* digitalinout,
|
||||||
asm("nop; nop;");
|
asm("nop; nop;");
|
||||||
#endif
|
#endif
|
||||||
#ifdef SAMD51
|
#ifdef SAMD51
|
||||||
delay_cycles(3);
|
delay_cycles(1);
|
||||||
#endif
|
#endif
|
||||||
if((p & bitMask) != 0) {
|
if((p & bitMask) != 0) {
|
||||||
// This is the high delay unique to a one bit.
|
// 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;");
|
asm("nop; nop;");
|
||||||
#endif
|
#endif
|
||||||
#ifdef SAMD51
|
#ifdef SAMD51
|
||||||
delay_cycles(3);
|
delay_cycles(1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if((bitMask >>= 1) != 0) {
|
if((bitMask >>= 1) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue