4 Replies Latest reply on Dec 20, 2016 3:20 AM by user_1377889

    Separate delay for print on UART Screen without effecting other function   

    user_491123998

      Hello,

         

      I want to print all my value after 1 minute without interrupting or increasing delay for other function .

         

      for Example i am showing  arduino code . it won't call PrintAllValue(); function till complete the one minute delay and won't effect or increase the delay for other function . 

         

         if((millis()- PrintDelay)>1000)
            {
              PrintDelay = millis();

         

               PrintAllValue();

         

             }

         

      I write smiler way in cypress but it showing error ...

         

        if ((CyDelay()-PrintDelay)>1000))
               {
                  PrintDelay=CyDelay(1000);

         

                  PrintAllValue();
               }

         

       

         

       

         

      Best Regards 

         

      Deepak Aagri