From 75213be1aa47477f9b11ada4892cdf1a6bd6e1a9 Mon Sep 17 00:00:00 2001 From: jens Date: Mon, 17 Oct 2022 22:15:37 +0200 Subject: [PATCH] =?UTF-8?q?pin16=20g=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9e0a8ba..5d6b2fb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -42,7 +42,7 @@ const int output26 = 26; const int output25 = 25; // Input const int input36 = 36; -const int input39 = 16; +const int input16 = 16; // restart automatisch boolean auto1 = true; @@ -97,7 +97,7 @@ void setHtml(){ else { htmltext += "

"; } - if (digitalRead(input39)== HIGH){ + if (digitalRead(input16)== HIGH){ htmltext += "

Server 2 ist online

"; } else { htmltext += "

Server 2 ist offline

"; @@ -240,7 +240,7 @@ void setup() { // SVP server 1 pinMode(input36, INPUT); // SVN server 2 - pinMode(input39, INPUT); + pinMode(input16, INPUT); display.init(); //display.flipScreenVertically(); @@ -283,7 +283,7 @@ void loop() { } } } - if ((auto2 == true) && (digitalRead(input39)== LOW)){ + if ((auto2 == true) && (digitalRead(input16)== LOW)){ if (auto2start== true){ digitalWrite(output26, HIGH); delay(200);