I have searched the forums with no luck at resolving this problem. The LEDs turn on and off as expected but the color does not match what is selected in the widget on my iphone.
If I view the property values of the DataStream’s online with the Blynk Console for the 3 LEDs the color values appear to match what is being displayed but again not what was selected in the widget.
Any help would be appreciated.
Regards,
Roger
/***************************************************************************************/
/* Controlling LEDs */
/* */
/* This will avoid lots of outgoing messages to the Blynk server when lighting the */
/* LEDs. It only sends the virtualWrite when there is a change in the state of the */
/* the fan relay, heat relay, or the ac relay; (off-to-on or on-to-off). */
/* */
/***************************************************************************************/
if (fan_LED_control != previous_fan_LED_control)
{
if(fan_LED_control)
{
Blynk.virtualWrite(V7,255); //Turn ON the Fan Relay Energized LED
}//End of if(fan_LED_control)
else
{
Blynk.virtualWrite(V7,0); //Turn OFF the Fan Relay Energized LED
}//End else
//Set the previous state to the current state
previous_fan_LED_control = fan_LED_control;
}//End of if (fan_LED_control != previous_fan_LED_control)
if (heat_LED_control != previous_heat_LED_control)
{
if(heat_LED_control)
{
Blynk.virtualWrite(V9,255); //Turn ON the Heat Relay Energized LED
}//End of if(heat_LED_control)
else
{
Blynk.virtualWrite(V9,0); //Turn OFF the Heat Relay Energized LED
}//End else
//Set the previous state to the current state
previous_heat_LED_control = heat_LED_control;
}//End of if (heat_LED_control != previous_heat_LED_control)
if (ac_LED_control != previous_ac_LED_control)
{
if(ac_LED_control)
{
Blynk.virtualWrite(V8,255); //Turn ON the AC Relay Energized LED
}//End of if(ac_LED_control)
else
{
Blynk.virtualWrite(V8,0); //Turn OFF the AC Relay Energized LED
}//End else
//Set the previous state to the current state
previous_ac_LED_control = ac_LED_control;
}//End of if (ac_LED_control != previous_ac_LED_control)