diff --git a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino index 402f79b2da..a22859040a 100644 --- a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino +++ b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino @@ -41,7 +41,7 @@ void my_disp_flush( lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *colo } /*Read the touchpad*/ -bool my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data ) +void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data ) { uint16_t touchX, touchY; @@ -65,8 +65,6 @@ bool my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data ) Serial.print( "Data y " ); Serial.println( touchY ); } - - return false; /*Return `false` because we are not buffering and no more data to read*/ } void setup() @@ -135,4 +133,4 @@ void loop() { lv_timer_handler(); /* let the GUI do its work */ delay( 5 ); -} +} \ No newline at end of file