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: 69
Topics: 18
Images: 2
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 42
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: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
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.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Mon Mar 04, 2019 1:31 am
Posts: 69
Topics: 18
Images: 2
Solve rating: 1
Joined: Tue Apr 14, 2015 11:54 pm
Topics: 18
Age: 42
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 2 guests

cron