pin16 gändert

This commit is contained in:
jens 2022-10-17 22:15:37 +02:00
parent c2dd943b5d
commit 75213be1aa

View File

@ -42,7 +42,7 @@ const int output26 = 26;
const int output25 = 25; const int output25 = 25;
// Input // Input
const int input36 = 36; const int input36 = 36;
const int input39 = 16; const int input16 = 16;
// restart automatisch // restart automatisch
boolean auto1 = true; boolean auto1 = true;
@ -97,7 +97,7 @@ void setHtml(){
else { else {
htmltext += "<p><a href=\"/auto2/on\"><button class=\"button button2\">Auto OFF</button></a></p>"; htmltext += "<p><a href=\"/auto2/on\"><button class=\"button button2\">Auto OFF</button></a></p>";
} }
if (digitalRead(input39)== HIGH){ if (digitalRead(input16)== HIGH){
htmltext += "<h2>Server 2 ist online</h2>"; htmltext += "<h2>Server 2 ist online</h2>";
} else { } else {
htmltext += "<h2>Server 2 ist offline</h2>"; htmltext += "<h2>Server 2 ist offline</h2>";
@ -240,7 +240,7 @@ void setup() {
// SVP server 1 // SVP server 1
pinMode(input36, INPUT); pinMode(input36, INPUT);
// SVN server 2 // SVN server 2
pinMode(input39, INPUT); pinMode(input16, INPUT);
display.init(); display.init();
//display.flipScreenVertically(); //display.flipScreenVertically();
@ -283,7 +283,7 @@ void loop() {
} }
} }
} }
if ((auto2 == true) && (digitalRead(input39)== LOW)){ if ((auto2 == true) && (digitalRead(input16)== LOW)){
if (auto2start== true){ if (auto2start== true){
digitalWrite(output26, HIGH); digitalWrite(output26, HIGH);
delay(200); delay(200);