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

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. // 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.