From f8ace1e0933d0c817a0be8f93d91fcc283edaa7a Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Thu, 29 Jun 2023 13:33:17 +0200 Subject: [PATCH] Added some more details about the connections. --- README.md | 13 +++++++------ firmware/webserver.ino | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e5231dc..d3210c9 100644 --- a/README.md +++ b/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"). diff --git a/firmware/webserver.ino b/firmware/webserver.ino index 6cfd9c8..428588f 100644 --- a/firmware/webserver.ino +++ b/firmware/webserver.ino @@ -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"));