コード例 #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;
  }
}
コード例 #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);
}
コード例 #3
0
ファイル: SpeedSense.cpp プロジェクト: dwilkins/electrathon
void SpeedSense::run(uint32_t now) {
  incRunTime(m_rate);
  m_rpm = readInputValue(now);
  processInputValue(now);
  populate_log_buffer();
}