mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-22 00:35:39 +00:00
cleanup + addition of defines for on screen keyboard and canned message module
This commit is contained in:
parent
97a1a42940
commit
c11e1809db
@ -13,10 +13,7 @@ class TouchScreenCST226SE : public TouchScreenBase
|
||||
{
|
||||
public:
|
||||
TouchScreenCST226SE(uint16_t width, uint16_t height);
|
||||
// TouchScreenCST226SE(uint16_t width, uint16_t height, bool (*getTouch)(int16_t *, int16_t *));
|
||||
void init(void);
|
||||
|
||||
// bool (*_getTouch)(int16_t *, int16_t *);
|
||||
virtual bool getTouch(int16_t &x, int16_t &y);
|
||||
virtual void onEvent(const TouchEvent &event);
|
||||
|
||||
@ -24,7 +21,6 @@ class TouchScreenCST226SE : public TouchScreenBase
|
||||
static TouchScreenCST226SE *instance;
|
||||
TouchDrvCSTXXX touch;
|
||||
uint8_t i2cAddress = 0;
|
||||
|
||||
static constexpr uint8_t PossibleAddresses[2] = {CST226SE_ADDR, CST226SE_ADDR_ALT};
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,9 @@
|
||||
|
||||
#define HAS_CST226SE 1
|
||||
#define HAS_TOUCHSCREEN 1
|
||||
// #define TOUCH_IRQ 35
|
||||
// #define TOUCH_IRQ 35 // broken in this version of the lib 0.3.1
|
||||
#define CANNED_MESSAGE_MODULE_ENABLE 1
|
||||
#define USE_VIRTUAL_KEYBOARD 1
|
||||
|
||||
#define ST7796_NSS 25
|
||||
#define ST7796_RS 13 // DC
|
||||
|
Loading…
Reference in New Issue
Block a user