pin16 gändert
This commit is contained in:
parent
c2dd943b5d
commit
75213be1aa
@ -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 += "<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>";
|
||||
} else {
|
||||
htmltext += "<h2>Server 2 ist offline</h2>";
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user