Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Bewaesserung/ESP8266Bewaesserung.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ float qualavg=0;
int countDown=0;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(60, LEDPIN, NEO_GRB + NEO_KHZ800);




void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
Expand Down Expand Up @@ -44,13 +41,16 @@ void loop() {
Serial.print(" ");
Serial.println(qualavg);
if (qualavg > 40) {
//blue 0 0 100
strip.setPixelColor(0, strip.Color(0, 0, 100));
} else if (qualavg > HUMIDITY) {
//green 0 50 0
strip.setPixelColor(0, strip.Color(0, 50, 0));
} else if (qualavg > 3.8) {
//yellow 150 100 0
strip.setPixelColor(0, strip.Color(150, 100, 0));
} else {
//red 200 0 0
strip.setPixelColor(0, strip.Color(200, 0, 0));
}
strip.show();
Expand Down