Merge pull request #1141 from jerryneedell/jerryn_neopixel

adjust SAMD51 neopixel_write timing
This commit is contained in:
Dan Halbert 2018-08-24 08:37:02 -04:00 committed by GitHub
commit caa232823e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(1);
delay_cycles(2);
#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(1);
delay_cycles(2);
#endif
}
if((bitMask >>= 1) != 0) {