ESP32-PaxCounter/include/button.h

23 lines
366 B
C
Raw Permalink Normal View History

2018-07-23 08:25:23 +02:00
#ifndef _BUTTON_H
#define _BUTTON_H
2022-11-06 15:00:54 +01:00
#include <OneButton.h>
2020-03-29 18:08:52 +02:00
#include "irqhandler.h"
#include "senddata.h"
#include "display.h"
#include "payload.h"
2019-05-03 20:24:42 +02:00
2022-08-04 13:52:16 +02:00
#ifndef BUTTON_ACTIVEHIGH
#define BUTTON_ACTIVEHIGH 0
#endif
2022-11-06 15:00:54 +01:00
#ifndef BUTTON_PULLUP
#define BUTTON_PULLUP 0
#endif
extern TaskHandle_t buttonLoopTask;
void button_init(void);
void IRAM_ATTR readButton(void);
2018-07-23 08:25:23 +02:00
#endif