Skip to content

Commit

Permalink
Merge pull request #1132 from tannewt/sk6812_3x
Browse files Browse the repository at this point in the history
Speed up zero neopixel pulses.
  • Loading branch information
tannewt committed Aug 21, 2018
2 parents cac760a + 44de3d4 commit 4a8dd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/atmel-samd/common-hal/neopixel_write/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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) {
Expand Down

0 comments on commit 4a8dd7e

Please sign in to comment.