mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
6a986d2b0c
Makes it so much easier for novice users as the ArduinoTimers libraray is not yet available from the IDE Library Manager.
22 lines
450 B
C++
22 lines
450 B
C++
// This file is copied from https://github.com/davidcutting42/ArduinoTimers
|
|
// All Credit to David Cutting
|
|
|
|
#ifndef VirtualTimer_h
|
|
#define VirtualTimer_h
|
|
|
|
class VirtualTimer
|
|
{
|
|
public:
|
|
virtual void initialize() = 0;
|
|
virtual void setPeriod(unsigned long microseconds) = 0;
|
|
virtual void start() = 0;
|
|
virtual void stop() = 0;
|
|
|
|
virtual void attachInterrupt(void (*isr)()) = 0;
|
|
virtual void detachInterrupt() = 0;
|
|
private:
|
|
|
|
};
|
|
|
|
#endif
|