mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 08:56:34 +02:00
21 lines
334 B
C++
21 lines
334 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 update(void);
|
|
void setPeriod(int period);
|
|
};
|
|
|
|
#endif /** _AG_SCHEDULE_H_ */
|