



Eigenbau Einzelschalter, ESP-01 Modul

#define RELAIS_COUNT 1
#define PIN_RELAIS1 2
#define PIN_RELAIS2 4
#define PIN_RELAIS3 5

#define BUTTONS_COUNT 1
#define PIN_BUTTON1 0
#define PIN_BUTTON2 12
#define PIN_BUTTON3 13

#define RELAISONSTATE LOW
#define BUTTONONSTATE LOW

-> Relais an GPIO-2, active LOW (PNP + NPN Transistor)
-> Taster an GPIO-0, active LOW





Sonoff Basic Modul

#define RELAIS_COUNT 1
#define PIN_RELAIS1 12
#define PIN_RELAIS2 4
#define PIN_RELAIS3 5

#define BUTTONS_COUNT 1
#define PIN_BUTTON1 0
#define PIN_BUTTON2 2
#define PIN_BUTTON3 13

#define RELAISONSTATE HIGH
#define BUTTONONSTATE LOW