8000 adjust SAMD51 neopixel_write timing by jerryneedell · Pull Request #1141 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

adjust SAMD51 neopixel_write timing #1141

New issue

Have a question about this project? Sign up for a free G 8000 itHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ports/atmel-samd/common-hal/neopixel_write/__init__.c
4B62
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