Skip to content

Commit

Permalink
Merge pull request #1141 from jerryneedell/jerryn_neopixel
Browse files Browse the repository at this point in the history
 adjust SAMD51 neopixel_write timing
  • Loading branch information
dhalbert committed Aug 24, 2018
2 parents 182a8d7 + e8b94d0 commit caa2328
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(1);
delay_cycles(2);
#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(1);
delay_cycles(2);
#endif
}
if((bitMask >>= 1) != 0) {
Expand Down

0 comments on commit caa2328

Please sign in to comment.