diff --git a/firmware/firmware.ino b/firmware/firmware.ino index b83edb9..2fe76e9 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -14,7 +14,7 @@ ESP8266WebServer server(80); String deviceName; String topic; #define QOS_2 2 -#define OUTPUT_PIN 4 +#define OUTPUT_PIN D1 void (* resetFunc) (void) = 0; @@ -182,8 +182,8 @@ void onMqttMessage(int messageSize) { } void processControlCommand(int64_t num) { - // Map the input value (0-100) to the output range (70-140) - long mappedValue = map(num, 0, 100, 70, 140); + // Map the input value (0-100) to the output range (60-140) + long mappedValue = map(num, 0, 100, 60, 140); Serial.print("[MEGA] Received power: "); Serial.print(num);