How can I refresh the mutex 4-Digit 7-Segment LED While fetching weather every five minutes. The LED is the same as this one http://www.learningaboutelectronics.com/Articles/4-digit-7-segment-LED-circuit-with-an-arduino.php
My loop looks like
void loop() {
// Get some data
String data = String(10);
digitalWrite(led, HIGH);
// Trigger the webhook
Particle.publish("weather_hook", data, PRIVATE);
displayWeather();
// Wait 60*10 seconds
delay(60000);
}
I want to run displayWeather() continously to get a good frame rate and fetch weather via webhook every 10 minutes.
Update: https://docs.particle.io/reference/firmware/photon/#software-timers would this help?