[temporary commit]

This commit is contained in:
Phat Nguyen
2024-04-03 07:04:55 +07:00
parent f52eab87d2
commit 8e032927c6
11 changed files with 1029 additions and 8 deletions

19
src/AgSchedule.h Normal file
View File

@ -0,0 +1,19 @@
#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_ */