mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Lots of modifications... Hopefully the end
This commit is contained in:
parent
e2faaecfd4
commit
6cb7e55dad
36 changed files with 345 additions and 210 deletions
|
@ -13,11 +13,14 @@ class MyTimer {
|
|||
/** interval in ms */
|
||||
MyTimer(unsigned long interval);
|
||||
/** Returns true and resets the timer if it has elapsed */
|
||||
bool elapsed();
|
||||
bool elapsed(void);
|
||||
void reset(void);
|
||||
void set_interval(unsigned long interval);
|
||||
|
||||
unsigned long interval;
|
||||
unsigned long previous_millis;
|
||||
|
||||
private:
|
||||
unsigned long previous_millis;
|
||||
};
|
||||
|
||||
#endif // __MYTIMER_H__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue