This commit is contained in:
mangavalk committed 2022-12-04 23:22:48 +01:00
1 parent 1f1715c841
commit 81dbbdc834
13 files changed
+1473

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
// Version 1
#ifndef CustomTimer_H
#define CustomTimer_H
class CustomTimer
{
int time;
boolean start;
public: CustomTimer()
{
start=false;
}
public: boolean Delay(int delay)
{
if (!start)
{
time = millis();
start = true;
}
if (millis() - time >= delay)
{
start = false;
return true;
}
else
return false;
}
};
#endif