ESP32-PaxCounter/include/button.h
2022-11-06 15:00:54 +01:00

23 lines
366 B
C

#ifndef _BUTTON_H
#define _BUTTON_H
#include <OneButton.h>
#include "irqhandler.h"
#include "senddata.h"
#include "display.h"
#include "payload.h"
#ifndef BUTTON_ACTIVEHIGH
#define BUTTON_ACTIVEHIGH 0
#endif
#ifndef BUTTON_PULLUP
#define BUTTON_PULLUP 0
#endif
extern TaskHandle_t buttonLoopTask;
void button_init(void);
void IRAM_ATTR readButton(void);
#endif