fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduino.ino

This commit is contained in:
dronecz
2021-06-10 14:27:18 +02:00
committed by GitHub
parent 54d8e8170b
commit 1a62f7a619

View File

@@ -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()