hi everyone... i just want to know what is the function of 60 in this program
= t.pulse(pin, 10 * 60 * 1000, HIGH);
hi everyone... i just want to know what is the function of 60 in this program
= t.pulse(pin, 10 * 60 * 1000, HIGH);
mustaq:
hi everyone... i just want to know what is the function of 60 in this program= t.pulse(pin, 10 * 60 * 1000, HIGH);
How do you expect anyone to know that for sure if you don't post all of the code?
We aren't mind-readers, and can only guess what the 'pulse()' function does.
My guess is that this means 10 minutes:- 10 * 60 * 1000
1000ms = 1s
1s x 60 = 1min
10 x 1min = 10min
My guess is that this means 10 minutes:- 10 * 60 * 1000
My guess, too. Except that 10 * 60 * 1000 is a negative value.
10 * 60 * 1000UL, on the other hand, would be 600000 milliseconds, or 10 minutes.