initial
This commit is contained in:
18
main/Detector.hpp
Normal file
18
main/Detector.hpp
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef DETECTOR_HPP
|
||||
#define DETECTOR_HPP
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
class Detector {
|
||||
public:
|
||||
void Init();
|
||||
void Tasks();
|
||||
|
||||
private:
|
||||
uint32_t falling_edge_time;
|
||||
bool last_button_state;
|
||||
bool handled;
|
||||
};
|
||||
extern Detector detector;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user