run background job while waiting for neopixel write seqend

This commit is contained in:
hathach 2018-09-04 19:24:45 +07:00
parent 0d92c65829
commit 1fe3ed87eb
1 changed files with 3 additions and 3 deletions

View File

@ -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.
while ( !pwm->EVENTS_SEQEND[0] ) {
//#ifdef MICROPY_VM_HOOK_LOOP
// MICROPY_VM_HOOK_LOOP
//#endif
#ifdef MICROPY_VM_HOOK_LOOP
MICROPY_VM_HOOK_LOOP
#endif
}
// Before leave we clear the flag for the event.