Exemplo n.º 1
0
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;
  }
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
void SpeedSense::run(uint32_t now) {
  incRunTime(m_rate);
  m_rpm = readInputValue(now);
  processInputValue(now);
  populate_log_buffer();
}