From 14825e03fa06184b7583727bc6604b16a67377f5 Mon Sep 17 00:00:00 2001 From: Miguel Magno <56565368+Miguel0101@users.noreply.github.com> Date: Fri, 20 Aug 2021 20:47:59 -0300 Subject: [PATCH] docs fix typos (#2472) --- docs/get-started/quick-overview.md | 4 ++-- src/core/lv_obj.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/get-started/quick-overview.md b/docs/get-started/quick-overview.md index b2aacb21e..55cd759d2 100644 --- a/docs/get-started/quick-overview.md +++ b/docs/get-started/quick-overview.md @@ -40,7 +40,7 @@ lv_disp_drv_init(&disp_drv); /*Basic initialization*/ disp_drv.flush_cb = my_disp_flush; /*Set your driver function*/ disp_drv.buffer = &draw_buf; /*Assign the buffer to the display*/ disp_drv.hor_res = MY_DISP_HOR_RES; /*Set the horizontal resolution of the display*/ -disp_drv.ver_res = MY_DISP_VER_RES; /*Set the verizontal resolution of the display*/ +disp_drv.ver_res = MY_DISP_VER_RES; /*Set the vertical resolution of the display*/ lv_disp_drv_register(&disp_drv); /*Finally register the driver*/ void my_disp_flush(lv_disp_drv_t * disp, const lv_area_t * area, lv_color_t * color_p) @@ -67,7 +67,7 @@ indev_drv.type = LV_INDEV_TYPE_POINTER; /*Touch pad is a pointer-like device* indev_drv.read_cb = my_touchpad_read; /*Set your driver function*/ lv_indev_drv_register(&indev_drv); /*Finally register the driver*/ -bool my_touchpad_read(lv_indev_t * indev, lv_indev_data_t * data) +void my_touchpad_read(lv_indev_t * indev, lv_indev_data_t * data) { /*`touchpad_is_pressed` and `touchpad_get_xy` needs to be implemented by you*/ if(touchpad_is_pressed()) { diff --git a/src/core/lv_obj.h b/src/core/lv_obj.h index ccd0e5139..912237c28 100644 --- a/src/core/lv_obj.h +++ b/src/core/lv_obj.h @@ -71,7 +71,7 @@ enum { LV_PART_INDICATOR = 0x020000, /**< Indicator, e.g. for slider, bar, switch, or the tick box of the checkbox*/ LV_PART_KNOB = 0x030000, /**< Like handle to grab to adjust the value*/ LV_PART_SELECTED = 0x040000, /**< Indicate the currently selected option or section*/ - LV_PART_ITEMS = 0x050000, /**< Used if the widget has multiple similar elements (e.g. tabel cells)*/ + LV_PART_ITEMS = 0x050000, /**< Used if the widget has multiple similar elements (e.g. table cells)*/ LV_PART_TICKS = 0x060000, /**< Ticks on scale e.g. for a chart or meter*/ LV_PART_CURSOR = 0x070000, /**< Mark a specific place e.g. for text area's cursor or on a chart*/