void CFastLED::show(uint8_t scale) { CLEDController *pCur = CLEDController::head(); while(pCur) { pCur->showLeds(scale); pCur = pCur->next(); } }
void CFastLED::show(uint8_t scale) { // guard against showing too rapidly while(m_nMinMicros && ((micros()-lastshow) < m_nMinMicros)); lastshow = micros(); // If we have a function for computing power, use it! if(m_pPowerFunc) { scale = (*m_pPowerFunc)(scale, m_nPowerData); } CLEDController *pCur = CLEDController::head(); while(pCur) { uint8_t d = pCur->getDither(); if(m_nFPS < 100) { pCur->setDither(0); } pCur->showLeds(scale); pCur->setDither(d); pCur = pCur->next(); } countFPS(); }