Forum Software Ferduino code Add Menu for test clouds and storm

Add Menu for test clouds and storm  [SOLVED]


Post Number:#1 Post Wed Feb 27, 2019 2:48 am
Posts: 66
Topics: 18
Images: 1
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 37
Gender: Male
National Flag:
Indonesia
hello fernando, I tried to make a menu for test the cloud Strom function , but I didn't find the expected results, please help correct the code.

add di tab botos_e_ets
const int testCSTROM[] = {
  40, 134, 280, 174
};    //Teste CLOUDS STORM


add code in tab ProcessMyTouch under case 25

       
        else if (checkButtons(testCSTROM[0], testCSTROM[1], testCSTROM[2], testCSTROM[3]) == true) // Testar todos
        {
          if ((haveraNuvem == true) && (executandoNuvem == false))
          {
            for (int i = 1; i <= quantNuvens; i++)
            {
              if (NumMins(t.hour, t.min) == horaNuvem[i])
              {
                executandoNuvem = true;
                inicioNuvem = true;
                millis_nuvem = millis();
              }
            }
          }
        }


Thanks
best Regards

Post Number:#2 Post Wed Feb 27, 2019 8:27 pm
Posts: 1578
Topics: 38
Images: 271
Solve rating: 213
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 34
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

The code to start cloud test is here.

Try this:

        else if (checkButtons(testCSTROM[0], testCSTROM[1], testCSTROM[2], testCSTROM[3]) == true) // Testar todos
        {
          executandoNuvem = true;
          inicioNuvem = true;
          executarAgora = true;
          millis_nuvem = millis();
        }


Best regards.
Please do not PM me for support unless it is absolutely necessary.

I'll not write custom function to nobody unless you can pay for my job.

Post Number:#3 Post Mon Mar 04, 2019 1:31 am
Posts: 66
Topics: 18
Images: 1
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 37
Gender: Male
National Flag:
Indonesia
thanks, its work prefect,
now, I will try to make the button to abort the test




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest