Can blynk control RGB LED display?

With Blynk sketches it is best to only have the bare basics in the void loop(). So to start off you would need to move all of the current contents of your void loop() into a another void function and call it with a timer.

http://docs.blynk.cc/#blynk-firmware-blynktimer

For example:

BlynkTimer is the same as the widely used SimpleTimer library, in that it works more elegantly than manually manipulating millis() and much better for Blynk then delay(). Also, it is NOT dependent on a connection to a Blynk Server.

A typical Interval Timer layout includes a definition, timer setup (pointing to a function) and a timer call in the void loop():

BlynkTimer Timer; // Sets up a timer object named Timer (could be any name)

Timer.setInterval(250L, MatrixFunction);  // Goes in Setup() and will call the void MatrixFunction() every 250 milis (1/4 second - adjust to your needs).  Blynk Timer allows up to 16 of these same object named timers pointing to differing functions

void MatrixFunction() 
{
// Put all your matrix stuff here
}

void loop()
{
Blynk.run();
Timer.run();  // This goes in the void loop() so the BlynkTimer library can run.
}

If you want to test your existing sketch before trying to Blynkify it, use the SimpleTimer library, then you can test this all without any other Blynk libraries… just load the SimpleTimer Library, change BlynkTimer Timer; to SimpleTimer Timer; and remove Blynk.run(); from the main loop.

Or you can jump in and add the Blynk libraries and use BlynkTimer… operates the same.

Then once you have that figured out… you can see about adding in a terminal function to replace your pre-defined strings.

Possibly something like this?? I don’t have that hardware so you need to do all the experimenting :wink:

// You can send commands from Terminal to your hardware. Just use
// the same Virtual Pin as your Terminal Widget
BLYNK_WRITE(V1)
{
  // In the terminal Widget (on V1) on your App, you type in your text and press enter 
  const char str[] = param.asStr()  // Not sure if you need cost char or just char... or something else... try and test.
  matrix.setCursor(textX, 1);
  matrix.print(F2(str)); // TEXT LINE 1
}