18 lines
307 B
C
18 lines
307 B
C
|
#pragma once
|
||
|
#include "Arduino.h"
|
||
|
extern "C" {
|
||
|
#include "osapi.h"
|
||
|
}
|
||
|
// Human Interface Button
|
||
|
class HIB {
|
||
|
private:
|
||
|
|
||
|
public:
|
||
|
HIB(uint8_t pin, uint8_t initialState, int longPressMsec = 5000);
|
||
|
HIB();
|
||
|
void configure(uint8_t pin, uint8_t initialState, int longPressMsec = 5000);
|
||
|
};
|
||
|
|
||
|
|
||
|
extern HIB Hib;
|