Trunk fmt
This commit is contained in:
@@ -37,4 +37,3 @@ Join our community and help improve Meshtastic! 🚀
|
|||||||
## Stats
|
## Stats
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -441,7 +441,8 @@ public:
|
|||||||
_cfg.y_max = 320;
|
_cfg.y_max = 320;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool init(void) override {
|
bool init(void) override
|
||||||
|
{
|
||||||
if (chsc6xTouch == nullptr) {
|
if (chsc6xTouch == nullptr) {
|
||||||
chsc6xTouch = new chsc6x(&Wire1, TOUCH_SDA_PIN, TOUCH_SCL_PIN, TOUCH_INT_PIN, TOUCH_RST_PIN);
|
chsc6xTouch = new chsc6x(&Wire1, TOUCH_SDA_PIN, TOUCH_SCL_PIN, TOUCH_INT_PIN, TOUCH_RST_PIN);
|
||||||
}
|
}
|
||||||
@@ -449,7 +450,8 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
uint_fast8_t getTouchRaw(touch_point_t* tp, uint_fast8_t count) override {
|
uint_fast8_t getTouchRaw(touch_point_t *tp, uint_fast8_t count) override
|
||||||
|
{
|
||||||
uint16_t raw_x, raw_y;
|
uint16_t raw_x, raw_y;
|
||||||
if (chsc6xTouch->chsc6x_read_touch_info(&raw_x, &raw_y) == 0) {
|
if (chsc6xTouch->chsc6x_read_touch_info(&raw_x, &raw_y) == 0) {
|
||||||
tp[0].x = 320 - 1 - raw_y;
|
tp[0].x = 320 - 1 - raw_y;
|
||||||
@@ -464,11 +466,12 @@ public:
|
|||||||
|
|
||||||
void wakeup(void) override{};
|
void wakeup(void) override{};
|
||||||
void sleep(void) override{};
|
void sleep(void) override{};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
chsc6x *chsc6xTouch = nullptr;
|
chsc6x *chsc6xTouch = nullptr;
|
||||||
};
|
};
|
||||||
}
|
} // namespace v1
|
||||||
}
|
} // namespace lgfx
|
||||||
#endif
|
#endif
|
||||||
class LGFX : public lgfx::LGFX_Device
|
class LGFX : public lgfx::LGFX_Device
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ A pattern / collection of resources for creating custom UIs, to target small gro
|
|||||||
For an example, see the `heltec-vision-master-e290-inkhud` platformio env.
|
For an example, see the `heltec-vision-master-e290-inkhud` platformio env.
|
||||||
|
|
||||||
- platformio.ini
|
- platformio.ini
|
||||||
|
|
||||||
- suppress default Meshtastic components (Screen, ButtonThread, etc)
|
- suppress default Meshtastic components (Screen, ButtonThread, etc)
|
||||||
- define `MESHTASTIC_INCLUDE_NICHE_GRAPHICS`
|
- define `MESHTASTIC_INCLUDE_NICHE_GRAPHICS`
|
||||||
- (possibly) Edit `build_src_filter` to include our new nicheGraphics.h file
|
- (possibly) Edit `build_src_filter` to include our new nicheGraphics.h file
|
||||||
|
|||||||
Reference in New Issue
Block a user