Skip to content

Commit

Permalink
fix(arduino) fix the prototype of my_touchpad_read in the LVGL_Arduin…
Browse files Browse the repository at this point in the history
…o.ino
  • Loading branch information
dronecz committed Jun 10, 2021
1 parent 54d8e81 commit 1a62f7a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/arduino/LVGL_Arduino/LVGL_Arduino.ino
Expand Up @@ -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;

Expand All @@ -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()
Expand Down Expand Up @@ -135,4 +133,4 @@ void loop()
{
lv_timer_handler(); /* let the GUI do its work */
delay( 5 );
}
}

0 comments on commit 1a62f7a

Please sign in to comment.