Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44de3d4

Browse files
committed
Speed up zero neopixel pulses.
SK6812 on 5v is pickier than WS2812 on 5v. Hopefully fixes #1083.
1 parent cac760a commit 44de3d4

File tree

1 file changed

+2
-2
lines changed
  • ports/atmel-samd/common-hal/neopixel_write

1 file changed

+2
-2
lines changed

ports/atmel-samd/common-hal/neopixel_write/__init__.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* digitalinout,
109109
asm("nop; nop;");
110110
#endif
111111
#ifdef SAMD51
112-
delay_cycles(3);
112+
delay_cycles(1);
113113
#endif
114114
if((p & bitMask) != 0) {
115115
// 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,
129129
asm("nop; nop;");
130130
#endif
131131
#ifdef SAMD51
132-
delay_cycles(3);
132+
delay_cycles(1);
133133
#endif
134134
}
135135
if((bitMask >>= 1) != 0) {

0 commit comments

Comments
 (0)