Compare commits
2 Commits
b4bbd455ae
...
090ff7aa9a
| Author | SHA1 | Date | |
|---|---|---|---|
| 090ff7aa9a | |||
| ae2cd6e3d6 |
@@ -9,7 +9,7 @@
|
|||||||
#include <WebServer.h>
|
#include <WebServer.h>
|
||||||
#include <Update.h>
|
#include <Update.h>
|
||||||
|
|
||||||
#define RELAY_PIN 4
|
#define RELAY_PIN 15
|
||||||
|
|
||||||
#define ETH_POWER_PIN 16
|
#define ETH_POWER_PIN 16
|
||||||
#define ETH_MDC_PIN 23
|
#define ETH_MDC_PIN 23
|
||||||
@@ -89,7 +89,7 @@ void saveConfig() {
|
|||||||
|
|
||||||
void triggerRelay() {
|
void triggerRelay() {
|
||||||
Serial.println("Реле: импульс 500мс");
|
Serial.println("Реле: импульс 500мс");
|
||||||
digitalWrite(RELAY_PIN, LOW); // LOW = включить
|
digitalWrite(RELAY_PIN, LOW); // LOW = включить (NC размыкается)
|
||||||
delay(500);
|
delay(500);
|
||||||
digitalWrite(RELAY_PIN, HIGH); // HIGH = выключить
|
digitalWrite(RELAY_PIN, HIGH); // HIGH = выключить
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user