fixed small errors
This commit is contained in:
10
README.md
10
README.md
@@ -62,7 +62,7 @@ The easiest way to get started with LittlevGL is to run it in a simulator on you
|
|||||||
|
|
||||||
Choose a project with your favourite IDE:
|
Choose a project with your favourite IDE:
|
||||||
|
|
||||||
| Eclipse | CodeBlock | Visual Studio | PlatfomIO | Qt Creator |
|
| Eclipse | CodeBlock | Visual Studio | PlatformIO | Qt Creator |
|
||||||
|-------------|----------- |---------------|-----------|------------|
|
|-------------|----------- |---------------|-----------|------------|
|
||||||
| [](https://github.com/littlevgl/pc_simulator_sdl_eclipse) | [](https://github.com/littlevgl/pc_simulator_win_codeblocks) | [](https://github.com/littlevgl/visual_studio_2017_sdl_x64) | [](https://github.com/littlevgl/pc_simulator_sdl_platformio) | [](https://blog.littlevgl.com/2019-01-03/qt-creator) |
|
| [](https://github.com/littlevgl/pc_simulator_sdl_eclipse) | [](https://github.com/littlevgl/pc_simulator_win_codeblocks) | [](https://github.com/littlevgl/visual_studio_2017_sdl_x64) | [](https://github.com/littlevgl/pc_simulator_sdl_platformio) | [](https://blog.littlevgl.com/2019-01-03/qt-creator) |
|
||||||
| Cross-platform<br>with SDL | Native Windows | Cross-platform<br>with SDL | Cross-platform<br>with SDL | Cross-platform<br>with SDL |
|
| Cross-platform<br>with SDL | Native Windows | Cross-platform<br>with SDL | Cross-platform<br>with SDL | Cross-platform<br>with SDL |
|
||||||
@@ -109,7 +109,7 @@ bool touchpad_read(lv_indev_data_t * data)
|
|||||||
data->state = touchpad_is_pressed() ? LV_INDEV_STATE_PR : LV_INDEV_STATE_REL;
|
data->state = touchpad_is_pressed() ? LV_INDEV_STATE_PR : LV_INDEV_STATE_REL;
|
||||||
if(data->state == LV_INDEV_STATE_PR) touchpad_get_xy(&last_x, &last_y);
|
if(data->state == LV_INDEV_STATE_PR) touchpad_get_xy(&last_x, &last_y);
|
||||||
|
|
||||||
/*Set the coordinates (if released use the last pressed cooridantes)*/
|
/*Set the coordinates (if released use the last pressed coordinates)*/
|
||||||
data->point.x = last_x;
|
data->point.x = last_x;
|
||||||
data->point.y = last_y;
|
data->point.y = last_y;
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ bool touchpad_read(lv_indev_data_t * data)
|
|||||||
```
|
```
|
||||||
6. Call `lv_task_handler()` periodically every few milliseconds in the main `while(1)` loop, in Timer interrupt or in an Operation system task.
|
6. Call `lv_task_handler()` periodically every few milliseconds in the main `while(1)` loop, in Timer interrupt or in an Operation system task.
|
||||||
|
|
||||||
For a detailed description check the [Documatation](https://docs.littlevgl.com/#Porting) or the [Porting tutorial](https://github.com/littlevgl/lv_examples/blob/master/lv_tutorial/0_porting/lv_tutorial_porting.c)
|
For a detailed description check the [Documentation](https://docs.littlevgl.com/#Porting) or the [Porting tutorial](https://github.com/littlevgl/lv_examples/blob/master/lv_tutorial/0_porting/lv_tutorial_porting.c)
|
||||||
|
|
||||||
|
|
||||||
### Code examples
|
### Code examples
|
||||||
@@ -161,8 +161,8 @@ style_btn_pr.body.grad_color = LV_COLOR_HEX3(0x24A);
|
|||||||
style_btn_pr.body.shadow.width = 2;
|
style_btn_pr.body.shadow.width = 2;
|
||||||
style_btn_pr.text.color = LV_COLOR_HEX3(0xBCD);
|
style_btn_pr.text.color = LV_COLOR_HEX3(0xBCD);
|
||||||
|
|
||||||
lv_btn_set_style(btn, LV_BTN_STYLE_REL, &style_btn_rel); /*Set the buton's released style*/
|
lv_btn_set_style(btn, LV_BTN_STYLE_REL, &style_btn_rel); /*Set the button's released style*/
|
||||||
lv_btn_set_style(btn, LV_BTN_STYLE_PR, &style_btn_pr); /*Set the buton's pressed style*/
|
lv_btn_set_style(btn, LV_BTN_STYLE_PR, &style_btn_pr); /*Set the button's pressed style*/
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user