aboutsummaryrefslogtreecommitdiff
path: root/examples/arduino
diff options
context:
space:
mode:
authordronecz <mzuzelka@gmail.com>2021-06-10 14:27:18 +0200
committerGitHub <noreply@github.com>2021-06-10 14:27:18 +0200
commit1a62f7a619faa93406bc5895ac3338c232de2226 (patch)
treebe65e454eb93d5d59bed8a5aec62105776ca4c87 /examples/arduino
parent54d8e8170bd4964909cee15a256408e7f08ccf21 (diff)
downloadlvgl-1a62f7a619faa93406bc5895ac3338c232de2226.tar.gz
lvgl-1a62f7a619faa93406bc5895ac3338c232de2226.zip
fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduino.ino
Diffstat (limited to 'examples/arduino')
-rw-r--r--examples/arduino/LVGL_Arduino/LVGL_Arduino.ino6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino b/examples/arduino/LVGL_Arduino/LVGL_Arduino.ino
index 402f79b2d..a22859040 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