Skip to content

Commit 4b25a81

Browse files
remove LVGL touch handler (moved in touch library)
1 parent 9a66a72 commit 4b25a81

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,6 @@ void lvgl_displayFlushing(lv_disp_drv_t * disp, const lv_area_t * area, lv_color
160160
dsi_lcdDrawImage((void *) color_p, (void *)(dsi_getActiveFrameBuffer() + offsetPos), width, height, DMA2D_INPUT_RGB565);
161161
lv_disp_flush_ready(disp); /* Indicate you are ready with the flushing*/
162162
}
163-
164-
void Arduino_H7_Video::attachLVGLTouchCb(void (*touch_cb)(void*,void*)) {
165-
static lv_indev_drv_t indev_drv; /* Descriptor of a input device driver */
166-
lv_indev_drv_init(&indev_drv); /* Basic initialization */
167-
indev_drv.type = LV_INDEV_TYPE_POINTER; /* Touch pad is a pointer-like device */
168-
indev_drv.read_cb = (void(*)(lv_indev_drv_t *, lv_indev_data_t *))(touch_cb); /* Set your driver function */
169-
lv_indev_t * my_indev = lv_indev_drv_register(&indev_drv); /* Register the driver in LVGL and save the created input device object */
170-
}
171163
#endif
172164

173165
/**** END OF FILE ****/

libraries/Arduino_H7_Video/src/Arduino_H7_Video.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Arduino_H7_Video : public ArduinoGraphics {
2929
#elif defined(ARDUINO_GIGA)
3030
Arduino_H7_Video(int width = 800, int heigth = 480, H7DisplayShield &shield = GigaDisplayShield);
3131
#endif
32-
virtual ~Arduino_H7_Video();
32+
~Arduino_H7_Video();
3333

3434
int begin();
3535
void end();
@@ -40,8 +40,6 @@ class Arduino_H7_Video : public ArduinoGraphics {
4040
virtual void endDraw();
4141

4242
virtual void set(int x, int y, uint8_t r, uint8_t g, uint8_t b);
43-
44-
void attachLVGLTouchCb(void (*touch_cb)(void*,void*));
4543
private:
4644
H7DisplayShield* _shield;
4745
bool _rotated;

0 commit comments

Comments
 (0)