static void ICACHE_FLASH_ATTR procTask(os_event_t *events) { CSTick( 0 ); if (light_mode) { //TODO enable interrupts for i2s peripheral to get notified when transfer is finished instead of having to count pattern_tick(tickCount); tickCount++; if (tickCount==512) { pattern_update(); tickCount=0; } } system_os_post(procTaskPrio, 0, 0 ); }
/** * @brief Update the warehouse components. * @note This will update the patterns list. * @return This function returns no value. */ void warehouse_update(void) { pattern_update(); return; }