You've already forked meshtastic-device-ui
mirror of
https://github.com/m5stack/meshtastic-device-ui.git
synced 2026-05-20 11:51:03 -07:00
19 lines
411 B
C++
19 lines
411 B
C++
#pragma once
|
|
|
|
#include "input/InputDriver.h"
|
|
|
|
/**
|
|
* Button (if available) is used to wake up from display sleep
|
|
*/
|
|
class ButtonInputDriver : public InputDriver
|
|
{
|
|
public:
|
|
ButtonInputDriver(void);
|
|
|
|
virtual void init(void) override;
|
|
virtual ~ButtonInputDriver(void) {}
|
|
|
|
private:
|
|
static void button_read(lv_indev_t *indev, lv_indev_data_t *data);
|
|
static int8_t getButtonPressedId(void);
|
|
}; |