ESP32-PaxCounter/src/button.cpp
2019-02-27 00:49:32 +01:00

15 lines
276 B
C++

#ifdef HAS_BUTTON
#include "globals.h"
#include "button.h"
// Local logging tag
static const char TAG[] = __FILE__;
void readButton() {
ESP_LOGI(TAG, "Button pressed");
payload.reset();
payload.addButton(0x01);
SendPayload(BUTTONPORT, prio_normal);
}
#endif