Merge branch 'master' of https://github.com/littlevgl/lvgl
This commit is contained in:
2
.github/stale.yml
vendored
2
.github/stale.yml
vendored
@@ -7,7 +7,7 @@ exemptLabels:
|
|||||||
- architecture
|
- architecture
|
||||||
- pinned
|
- pinned
|
||||||
# Label to use when marking an issue as stale
|
# Label to use when marking an issue as stale
|
||||||
staleLabel: stale
|
staleLabel: stale
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
markComment: >
|
markComment: >
|
||||||
This issue or pull request has been automatically marked as stale because it has not had
|
This issue or pull request has been automatically marked as stale because it has not had
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -35,6 +35,7 @@ LittlevGL provides everything you need to create a Graphical User Interface (GUI
|
|||||||
* **OS, External memory and GPU** supported but not required
|
* **OS, External memory and GPU** supported but not required
|
||||||
* **Single frame buffer** operation even with advances graphical effects
|
* **Single frame buffer** operation even with advances graphical effects
|
||||||
* **Written in C** for maximal compatibility
|
* **Written in C** for maximal compatibility
|
||||||
|
* **Micropython Binding** exposes [LittlevGL API in Micropython](https://blog.littlevgl.com/2019-02-20/micropython-bindings)
|
||||||
* **Simulator** to develop on PC without embedded hardware
|
* **Simulator** to develop on PC without embedded hardware
|
||||||
* **Tutorials, examples, themes** for rapid development
|
* **Tutorials, examples, themes** for rapid development
|
||||||
* **Documentation** and API references online
|
* **Documentation** and API references online
|
||||||
@@ -177,6 +178,22 @@ lv_btn_set_ink_out_time(btn, 300);
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
#### Use LittlevGL from Micropython
|
||||||
|
```python
|
||||||
|
|
||||||
|
# Create a Button and a Label
|
||||||
|
|
||||||
|
scr = lv.obj()
|
||||||
|
btn = lv.btn(scr)
|
||||||
|
btn.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0)
|
||||||
|
label = lv.label(btn)
|
||||||
|
label.set_text("Button")
|
||||||
|
|
||||||
|
# Load the screen
|
||||||
|
|
||||||
|
lv.scr_load(scr)
|
||||||
|
```
|
||||||
|
|
||||||
Check out the [Documentation](https://docs.littlevgl.com/) for more!
|
Check out the [Documentation](https://docs.littlevgl.com/) for more!
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ extern lv_style_t lv_style_pretty_color;
|
|||||||
extern lv_style_t lv_style_btn_rel;
|
extern lv_style_t lv_style_btn_rel;
|
||||||
extern lv_style_t lv_style_btn_pr;
|
extern lv_style_t lv_style_btn_pr;
|
||||||
extern lv_style_t lv_style_btn_tgl_rel;
|
extern lv_style_t lv_style_btn_tgl_rel;
|
||||||
extern lv_style_t lv_style_btn_tgl_pr;;
|
extern lv_style_t lv_style_btn_tgl_pr;
|
||||||
extern lv_style_t lv_style_btn_ina;
|
extern lv_style_t lv_style_btn_ina;
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
|
|||||||
@@ -48,74 +48,74 @@ void lv_font_builtin_init(void);
|
|||||||
|
|
||||||
/*10 px */
|
/*10 px */
|
||||||
#if USE_LV_FONT_DEJAVU_10
|
#if USE_LV_FONT_DEJAVU_10
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_10);
|
LV_FONT_DECLARE(lv_font_dejavu_10)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_10_LATIN_SUP
|
#if USE_LV_FONT_DEJAVU_10_LATIN_SUP
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_10_latin_sup);
|
LV_FONT_DECLARE(lv_font_dejavu_10_latin_sup)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_10_CYRILLIC
|
#if USE_LV_FONT_DEJAVU_10_CYRILLIC
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_10_cyrillic);
|
LV_FONT_DECLARE(lv_font_dejavu_10_cyrillic)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_SYMBOL_10
|
#if USE_LV_FONT_SYMBOL_10
|
||||||
LV_FONT_DECLARE(lv_font_symbol_10);
|
LV_FONT_DECLARE(lv_font_symbol_10)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*20 px */
|
/*20 px */
|
||||||
#if USE_LV_FONT_DEJAVU_20
|
#if USE_LV_FONT_DEJAVU_20
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_20);
|
LV_FONT_DECLARE(lv_font_dejavu_20)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_20_LATIN_SUP
|
#if USE_LV_FONT_DEJAVU_20_LATIN_SUP
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_20_latin_sup);
|
LV_FONT_DECLARE(lv_font_dejavu_20_latin_sup)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_20_CYRILLIC
|
#if USE_LV_FONT_DEJAVU_20_CYRILLIC
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_20_cyrillic);
|
LV_FONT_DECLARE(lv_font_dejavu_20_cyrillic)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_SYMBOL_20
|
#if USE_LV_FONT_SYMBOL_20
|
||||||
LV_FONT_DECLARE(lv_font_symbol_20);
|
LV_FONT_DECLARE(lv_font_symbol_20)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*30 px */
|
/*30 px */
|
||||||
#if USE_LV_FONT_DEJAVU_30
|
#if USE_LV_FONT_DEJAVU_30
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_30);
|
LV_FONT_DECLARE(lv_font_dejavu_30)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_30_LATIN_SUP
|
#if USE_LV_FONT_DEJAVU_30_LATIN_SUP
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_30_latin_sup);
|
LV_FONT_DECLARE(lv_font_dejavu_30_latin_sup)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_30_CYRILLIC
|
#if USE_LV_FONT_DEJAVU_30_CYRILLIC
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_30_cyrillic);
|
LV_FONT_DECLARE(lv_font_dejavu_30_cyrillic)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_SYMBOL_30
|
#if USE_LV_FONT_SYMBOL_30
|
||||||
LV_FONT_DECLARE(lv_font_symbol_30);
|
LV_FONT_DECLARE(lv_font_symbol_30)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*40 px */
|
/*40 px */
|
||||||
#if USE_LV_FONT_DEJAVU_40
|
#if USE_LV_FONT_DEJAVU_40
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_40);
|
LV_FONT_DECLARE(lv_font_dejavu_40)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_40_LATIN_SUP
|
#if USE_LV_FONT_DEJAVU_40_LATIN_SUP
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_40_latin_sup);
|
LV_FONT_DECLARE(lv_font_dejavu_40_latin_sup)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_DEJAVU_40_CYRILLIC
|
#if USE_LV_FONT_DEJAVU_40_CYRILLIC
|
||||||
LV_FONT_DECLARE(lv_font_dejavu_40_cyrillic);
|
LV_FONT_DECLARE(lv_font_dejavu_40_cyrillic)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_SYMBOL_40
|
#if USE_LV_FONT_SYMBOL_40
|
||||||
LV_FONT_DECLARE(lv_font_symbol_40);
|
LV_FONT_DECLARE(lv_font_symbol_40)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_LV_FONT_MONOSPACE_8
|
#if USE_LV_FONT_MONOSPACE_8
|
||||||
LV_FONT_DECLARE(lv_font_monospace_8);
|
LV_FONT_DECLARE(lv_font_monospace_8)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
@@ -300,7 +300,9 @@ void lv_list_set_btn_selected(lv_obj_t * list, lv_obj_t * btn)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ext->selected_btn = btn;
|
ext->selected_btn = btn;
|
||||||
ext->last_sel = btn;
|
if( btn != NULL ) {
|
||||||
|
ext->last_sel = btn;
|
||||||
|
}
|
||||||
|
|
||||||
if(ext->selected_btn) {
|
if(ext->selected_btn) {
|
||||||
lv_btn_state_t s = lv_btn_get_state(ext->selected_btn);
|
lv_btn_state_t s = lv_btn_get_state(ext->selected_btn);
|
||||||
|
|||||||
Reference in New Issue
Block a user