corbanmailloux / esp-mqtt-rgb-led

MQTT RGB LEDs Using JSON for Home Assistant
MIT License
270 stars 74 forks source link

Update mqtt_esp8266_rgb.ino #2

Closed chrom3 closed 8 years ago

chrom3 commented 8 years ago

Made it so the last value has priority over the previous command. changed variable "wait" to "transition_time" changed time variables to unsigned long

from: stepR = calculateStep(prevR, realRed); stepG = calculateStep(prevG, realGreen); stepB = calculateStep(prevB, realBlue); to: stepR = calculateStep(redVal, realRed); stepG = calculateStep(grnVal, realGreen); stepB = calculateStep(bluVal, realBlue);

corbanmailloux commented 8 years ago

I incorporated most of this feedback in commit 4a0eef10c54a0ffcad7b2ada415960952c27b350. Thanks, @chrom3.