示例#1
0
void loop() {
  if(!Particle.connected()) {
    Particle.connect();
  }

  button.Update();
  clicks = button.clicks;

  self.update();

  Blynk.run();
}
示例#2
0
/********************
 * Loop function
 * ******************/
void loop(){
  char key;

  percent = led.getOutputPercent(now());
  analogWrite(ledPin, 255 * percent / 100);

  key = kpd.get_key();
  if (key != '\0')
  {
    computeKeypadInput(key);
  }
  fsm.update();
}
示例#3
0
void loop() {
  connectionFsm.update();
}