mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-10 14:41:26 +00:00
![Manuel](/assets/img/avatar_default.png)
* add hwid for auto-detection * fix: heltec-wireless-tracker USB serial * T-Deck support * trunk fmt * set FRAMERATE to 1 * fix some defines * trunk fmt * corrected vendor link * T-Deck: support keyboard, trackball & touch screen * T-Watch add touchscreen defs, remove getTouch * fix warnings * getTouch uint16 -> int16 * fix touch x,y * fix I2C port * CannedMsgModule: use entire display height * trunk fmt * fix I2C issue for T-Watch * allow dest selection in canned mode * fix: allow dest selection in canned mode * use tft.setBrightness() to poweroff display * Increased t-watch framerate and added back haptic feedback * add da ref * Move to touched * improved sensitivity and accuracy of touch events * use double tap to send canned message * fix warning * trunk fmt * Remove extra hapticFeedback() --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
18 lines
428 B
C++
18 lines
428 B
C++
#pragma once
|
|
#include "TouchScreenBase.h"
|
|
|
|
class TouchScreenImpl1 : public TouchScreenBase
|
|
{
|
|
public:
|
|
TouchScreenImpl1(uint16_t width, uint16_t height, bool (*getTouch)(int16_t *, int16_t *));
|
|
void init(void);
|
|
|
|
protected:
|
|
virtual bool getTouch(int16_t &x, int16_t &y);
|
|
virtual void onEvent(const TouchEvent &event);
|
|
|
|
bool (*_getTouch)(int16_t *, int16_t *);
|
|
};
|
|
|
|
extern TouchScreenImpl1 *touchScreenImpl1;
|