ESP32-PaxCounter/src/button.cpp
2019-02-03 14:12:21 +01:00

15 lines
274 B
C++

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