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

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

  self.update();

  Blynk.run();
}
/********************
 * 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();
}
void loop() {
  connectionFsm.update();
}