clean up
This commit is contained in:
5
aqi.ino
5
aqi.ino
@@ -98,8 +98,9 @@ void setup() {
|
||||
void loop() {
|
||||
currentTime = millis();
|
||||
|
||||
delay(20);
|
||||
delay(50);
|
||||
|
||||
// Display Button
|
||||
if (currentTime - buttonTime >= 100) {
|
||||
buttonTime = currentTime;
|
||||
|
||||
@@ -108,6 +109,7 @@ void loop() {
|
||||
}
|
||||
}
|
||||
|
||||
// sen44
|
||||
if (currentTime - sen44Time >= 1000) {
|
||||
sen44Time = currentTime;
|
||||
|
||||
@@ -131,6 +133,7 @@ void loop() {
|
||||
feelsLikeTemperature = heatIndex(ambientTemperature, ambientHumidity);
|
||||
}
|
||||
|
||||
// Display
|
||||
if (currentTime - lcdTime >= 500) {
|
||||
lcdTime = currentTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user