GIO0 (D3) für das Relai
constexpr auto ACTIVE = LOW; // LOW für LOW aktive Relais oder HIGH für HIGH aktive (zB. SSR, Mosfet) einstellen (LOW für ESP-01)
constexpr uint8_t DEVICE_PIN = D3; // Pin für Device einstellen (D3 ESP-01)
constexpr uint8_t RECORDS = 6; // Anzahl Schaltzeiten festlegen 1 - 100
bool pinState {!ACTIVE};
GPIO1 (D1) für einen Taster. Funktioniert aber so nicht
constexpr uint8_t inputPIN {D1}; // Pin für Taster einstellen
void button(bool &state) { // Aufrufen mit Pin Status
pinMode(inputPIN, INPUT_PULLUP); // oder 10k Pullup-Widerstand von VCC zum inputPIN