|
@ -49,7 +49,11 @@ |
|
|
#define DEVICE "D1_MINI_RELAYSHIELD" |
|
|
#define DEVICE "D1_MINI_RELAYSHIELD" |
|
|
|
|
|
|
|
|
// Buttons |
|
|
// Buttons |
|
|
// No buttons on the D1 MINI |
|
|
|
|
|
|
|
|
// No buttons on the D1 MINI alone, but defining it without adding a button doen't create problems |
|
|
|
|
|
#define BUTTON1_PIN 0 // Connect a pushbutton between D3 and GND, |
|
|
|
|
|
// it's the same as using a Wemos one button shield |
|
|
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
|
// Relays |
|
|
// Relays |
|
|
#define RELAY1_PIN 5 |
|
|
#define RELAY1_PIN 5 |
|
@ -59,6 +63,13 @@ |
|
|
#define LED1_PIN 2 |
|
|
#define LED1_PIN 2 |
|
|
#define LED1_PIN_INVERSE 1 |
|
|
#define LED1_PIN_INVERSE 1 |
|
|
|
|
|
|
|
|
|
|
|
// Buttons |
|
|
|
|
|
// No buttons on the D1 MINI alone, but defining it without adding a button doen't create problems |
|
|
|
|
|
#define BUTTON1_PIN 0 // Connect a pushbutton between D3 and GND, |
|
|
|
|
|
// it's the same as using a Wemos one button shield |
|
|
|
|
|
#define BUTTON1_MODE BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH |
|
|
|
|
|
#define BUTTON1_RELAY 1 |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ESPurna |
|
|
// ESPurna |
|
|
// ----------------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------------- |
|
|