18 lines
272 B
C++
18 lines
272 B
C++
#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 |