Separate delay for print on UART Screen without effecting other function   

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DeAa_335316
Level 4
Level 4
First like received

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

0 Likes
4 Replies