new fan pin, and testing on off times
This commit is contained in:
parent
1929251bfc
commit
7f1bf05af2
23
src/main.cpp
23
src/main.cpp
@ -10,9 +10,10 @@ bool allow;
|
||||
bool error = false;
|
||||
|
||||
/** pin config */
|
||||
static const uint8_t WasserSensorPin = 14;
|
||||
static const uint8_t DruckSensorPin = 12;
|
||||
static const uint8_t SchuetzPin = 13;
|
||||
static const uint8_t WasserSensorPin = D5; // GPIO 14
|
||||
static const uint8_t DruckSensorPin = D6; // GPIO 12
|
||||
static const uint8_t SchuetzPin = D2; // GPIO 4
|
||||
static const uint8_t LuefterPin = D3; // GPIO 0
|
||||
|
||||
/** time config */
|
||||
static const int maxpumpdauer = 600; //sek
|
||||
@ -132,12 +133,22 @@ ICACHE_RAM_ATTR void WasserSensorInt() {
|
||||
}
|
||||
|
||||
void setup() {
|
||||
digitalWrite(SchuetzPin, LOW); //pumpe anfangs sofort abschalten
|
||||
pinMode(SchuetzPin, OUTPUT);
|
||||
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
pinMode(LuefterPin, OUTPUT);
|
||||
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
digitalWrite(SchuetzPin, LOW); //pumpe anfangs sofort abschalten
|
||||
digitalWrite(LuefterPin, LOW);
|
||||
|
||||
delay(5000);
|
||||
digitalWrite(LuefterPin, HIGH);
|
||||
digitalWrite(SchuetzPin, HIGH);
|
||||
delay(2000);
|
||||
digitalWrite(LuefterPin, LOW);
|
||||
digitalWrite(SchuetzPin, LOW);
|
||||
|
||||
delay(9999999);
|
||||
|
||||
pinMode(WasserSensorPin, INPUT);
|
||||
pinMode(DruckSensorPin, INPUT);
|
||||
|
Loading…
Reference in New Issue
Block a user