LED Strip Driver [SOLVED]

Hello I got Led strip driver like this one:


All connected to arduino mega,
There are 4 DHT sensors, rain sensor, pressure, 8 relays, everything is working except LED driver.
Leds are turning on properly, colours are fine, but after random time (several sec) leds are beying off.
Function is pretty simple (part of the code).

#include "RGBdriver.h"
#define CLK 2//pins definitions for the driver        
#define DIO 3
RGBdriver Driver(CLK,DIO);
//LED - Zebra
 BLYNK_WRITE(V27)
{   
  int redValue = 0;
int greenValue = 0;
int blueValue = 0;
  redValue = param[0].asInt();
  greenValue = param[1].asInt();
  blueValue = param[2].asInt();
   Driver.begin();
  Driver.SetColor(redValue, greenValue, blueValue); //Red. first node data
  Driver.end();
}
//Button activated LED
 BLYNK_WRITE(V28)
{  
   if (param.asInt())
  {
  Driver.begin();
  Driver.SetColor(255, 0, 203); //Red. first node data
  Driver.end();
  }
  else
  {
  Driver.begin();
  Driver.SetColor(0, 0, 0); //Red. first node data
  Driver.end();
  } 
 }

I think that multiple Driver.begin(); and driver end it’s not necessary but I’m confused. Thanks for info

I’d put the Driver.begin() only in the setup() and see what happens. It probably initializes stuff and turns things off.

Hi,Found the issue, code is ok, there was a overheating of the LED dc adaptor. The temperature switch was causing random switch off and DC unstable behaviour:)