ESP32-PaxCounter/src/button.cpp

15 lines
261 B
C++
Raw Normal View History

2018-07-23 08:25:23 +02:00
#ifdef HAS_BUTTON
#include "globals.h"
#include "button.h"
2018-07-23 08:25:23 +02:00
// Local logging tag
static const char TAG[] = "main";
void readButton() {
ESP_LOGI(TAG, "Button pressed");
payload.reset();
payload.addButton(0x01);
SendPayload(BUTTONPORT);
2018-07-23 08:25:23 +02:00
}
#endif