it provides 1 sec delay
Using delay() is blocking code.
of course - but he does not need anything else apparently
hi all, i new one with Arduin o, i want to execute the function after a 5min delay.so how to make 5 min delay.thankslike.if(sensor == 0){ while(1) { gps(); delay(2000) getltlg(); delay(1000); tracking(); delay(1000); delay of 5 min; }}
That's what he thinks now. :-)There is always something else. These newbies have grand plans.
Hi ykn,Welcome.. Please use the code tag when posting codes.delay ( 1000 ); //<----- This is a second delay..what if ?delay ( 1000 * 5UL ); // <---- Would this provide a 5 second worth of delay?Anyway looking forward... Please limit the use of delay in your code... Thank you[ sir i need 5 min delay]