fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduino.ino
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
58a169d757
commit
0c1105951d
@@ -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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user