run background job while waiting for neopixel write seqend
This commit is contained in:
parent
0d92c65829
commit
1fe3ed87eb
@ -179,9 +179,9 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
|
|||||||
|
|
||||||
// But we have to wait for the flag to be set.
|
// But we have to wait for the flag to be set.
|
||||||
while ( !pwm->EVENTS_SEQEND[0] ) {
|
while ( !pwm->EVENTS_SEQEND[0] ) {
|
||||||
//#ifdef MICROPY_VM_HOOK_LOOP
|
#ifdef MICROPY_VM_HOOK_LOOP
|
||||||
// MICROPY_VM_HOOK_LOOP
|
MICROPY_VM_HOOK_LOOP
|
||||||
//#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Before leave we clear the flag for the event.
|
// Before leave we clear the flag for the event.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user