void ThrottleSense::run(uint32_t now) { incRunTime(m_rate); m_input_level = readInputValue(now); processInputValue(now); if(m_level != m_old_level) { populate_log_buffer(); m_old_level = m_level; } }
void Clock::run(uint32_t now) { RTCTime *time = timeReader->getTime(); pixels->clear(); clockFace->updateFace(time); reverse(); pixels->show(); // This sends the updated pixel color to the hardware. // Run again in the required number of milliseconds. incRunTime(rate); }
void SpeedSense::run(uint32_t now) { incRunTime(m_rate); m_rpm = readInputValue(now); processInputValue(now); populate_log_buffer(); }