awesome, OK I added this to the ferduino tab at the very bottom as below
215, 210, 205, 200, 190, 185, 180, 175, //16 - 17
170, 165, 160, 160, 160, 150, 145, 140, //18 - 19
135, 130, 125, 115, 100, 75, 60, 30, //20 - 21
30, 30, 28, 28, 0, 0, 0, 0 //22 - 23
};
byte *cor[5] = {wled, bled, rbled, rled, uvled};
byte *cor_canal[5] = {cor_canal1, cor_canal2, cor_canal3, cor_canal4, cor_canal5};
/***************************************************************************/
/************* automatic mode change for wavemaker *************************/
/***************************************************************************/
unsigned long interval_wave_millis = 0;
int interval_wave = 120; // in minutes
boolean alternated_mode = true;
OK I got it now, you have an [ ; ] missing in the above code Fernando
I add to loop.ino like below
Wavemaker();
if(alternated_mode == true)
{
if((millis() - interval_wave_millis) > (interval_wave*60000))
{
modo_selecionado += 1;
if(modo_selecionado > 5)
{
modo_selecionado = 1;
}
interval_wave_millis = millis();
}
}
if (dispScreen == 10) // Desenha os gráficos enquanto o menu estiver aberto.
{
Grafico_WaveMaker();
}
if (millis() - previousMillis > 5000) // Verifica as funções a cada 5 segundos.
{
changed time to 1 minute and tested, the screen on the Ferduino display remains as is but the bar graph changes as the mode changes very nice man thank you