From c0931edc6cc3fe8689ef6b1ce87d3094b07dd8a9 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 21 Jun 2025 14:12:40 -0600 Subject: [PATCH] feat: Adjust control command output mapping range --- firmware/firmware.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);