Compare commits
No commits in common. '50c231edcf453fd87e0a7018b367b3f48e5b4802' and 'aeb36b69dc80c9edb827f6595ee80020bcb39b24' have entirely different histories.
50c231edcf
...
aeb36b69dc
@ -0,0 +1,8 @@
|
||||
#ifndef TOOLS_H
|
||||
#define TOOLS_H
|
||||
|
||||
#define EVERY_N_SECONDS(t) for (static uint16_t _lasttime; \
|
||||
(uint16_t)((uint16_t)millis() - _lasttime) >= (t * 1000); \
|
||||
_lasttime += (t * 1000))
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue