Added some more details about the connections.
This commit is contained in:
parent
66873fa735
commit
f8ace1e093
2 changed files with 8 additions and 7 deletions
13
README.md
13
README.md
|
@ -14,12 +14,13 @@ The input of the 7805 is connected to the 24V of the DC power plug.
|
|||
|
||||
NodeMCU pin connections to the cable wires:
|
||||
|
||||
| |ch1|ch2|ch3|ch4|
|
||||
|--|--|--|--|--|
|
||||
|LED color|blue|warm white|purple|white & red & green|
|
||||
|Wire color|blue|black|red|white|
|
||||
|Arduino pin names|D1|D2|D7|D5|
|
||||
|GPIO|5|4|13|14|
|
||||
| |ch1|ch2|ch3|ch4||
|
||||
|--|--|--|--|--|--|
|
||||
|LED color|blue|warm white|purple|white & red & green||
|
||||
|Wire colors|blue|black|red|white|+24V|
|
||||
|Color wire connection to Load PWM boards|1|2|3|4|/|
|
||||
|Arduino pin to PWM boards|D1|D2|D7|D5|+24V|
|
||||
|Arduino GPIO pin numbers|5|4|13|14|/|
|
||||
|
||||
The HTML content is pushed to the NodeMCU separetely by using the ESP8266 Sketch Data Upload plugin of the old Arduino IDE (not "Arduino IDE").
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ void init_webserver()
|
|||
|
||||
// -------------------- //
|
||||
server.on("/state", HTTP_PUT, []()
|
||||
{ // HTTP PUT request used to set a new light state
|
||||
{ // HTTP PUT request used to set a new light state
|
||||
DynamicJsonDocument root(512);
|
||||
DeserializationError error = deserializeJson(root, server.arg("plain"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue