mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 17:52:08 +02:00
20 lines
313 B
C
20 lines
313 B
C
![]() |
#ifndef _AG_SCHEDULE_H_
|
||
|
#define _AG_SCHEDULE_H_
|
||
|
|
||
|
#include <Arduino.h>
|
||
|
|
||
|
class AgSchedule {
|
||
|
private:
|
||
|
int period;
|
||
|
void (*handler)(void);
|
||
|
uint32_t count;
|
||
|
|
||
|
public:
|
||
|
AgSchedule(int period, void (*handler)(void));
|
||
|
~AgSchedule();
|
||
|
void run(void);
|
||
|
void setPeriod(int period);
|
||
|
};
|
||
|
|
||
|
#endif /** _AG_SCHEDULE_H_ */
|