Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int old_time = 0; // предыдущее время
- int current_time = 0; // текущие
- void loop() {
- //некий код....
- current_time = get_curent_time() // получаем текущие время
- if (current_time >= (old_time + 60000)) {
- // опращиваем тут датчик, если условие не истино - то просто игнорим.
- old_time = current_time;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement