17 lines
438 B
C++
17 lines
438 B
C++
#pragma once
|
|
#include <ESPMegaPRO.h>
|
|
|
|
class ESPMega_Timer {
|
|
public:
|
|
void loop();
|
|
ESPMega_Timer(uint8_t hour,uint8_t minute,void(*timer_callback)(), uint32_t fram_address);
|
|
void set(uint8_t hour,uint8_t minute);
|
|
void begin();
|
|
private:
|
|
uint8_t today;
|
|
uint8_t timer_ran_today;
|
|
uint8_t hr;
|
|
uint8_t min;
|
|
uint32_t fram_address;
|
|
void (*timer_callback)();
|
|
}; |