add lvgl example pic

This commit is contained in:
Sean
2021-04-02 18:02:09 +08:00
parent fd88e60f26
commit 4e2d706756
16 changed files with 78 additions and 1 deletions
+36
View File
@@ -38,6 +38,8 @@ screen.del_screen()
## M5Tabview
<img src="/image/m5stack_lvgl/M5Tabview.webp" width="300px">
>Create tab
```clike
@@ -61,6 +63,8 @@ tab.set_tab_name(index,"new_tab_name")
## M5Textarea
<img src="/image/m5stack_lvgl/M5Label.webp" width="300px">
Create a text area
@@ -80,6 +84,8 @@ Textarea.set_text("Hello World")
## M5Msgbox
<img src="/image/m5stack_lvgl/M5Msgbox.webp" width="300px">
>Create information box
```clike
@@ -102,6 +108,8 @@ Msgbox.get_active_btn_text()
## M5Led
<img src="/image/m5stack_lvgl/M5Led.webp" width="300px">
>Create virtual LED lights
```clike
@@ -126,6 +134,9 @@ Led.set_color(0x00ff00)
## M5Switch
<img src="/image/m5stack_lvgl/M5Switch.webp" width="300px">
>Create a sliding switch
@@ -158,6 +169,8 @@ Switch.off(offCallback)
## M5Slider
<img src="/image/m5stack_lvgl/M5Slider.webp" width="300px">
>Create a slider
@@ -190,6 +203,8 @@ Slider.changed(onChange)
## M5List
<img src="/image/m5stack_lvgl/M5List.webp" width="300px">
>Create a list
@@ -220,6 +235,8 @@ List.get_label_text(handle)
## M5Line
<img src="/image/m5stack_lvgl/M5Line.webp" width="300px">
>Draw a straight line
```clike
@@ -246,6 +263,8 @@ Line.set_opacity(100)
## M5Label
<img src="/image/m5stack_lvgl/M5Label.webp" width="300px">
Draw text labels
@@ -276,6 +295,8 @@ Label.get_width()
## M5Img
<img src="/image/m5stack_lvgl/M5Img.webp" width="300px">
>Insert image (only png is supported)
```clike
@@ -293,6 +314,9 @@ Img.set_img_src(filename)
## M5Dropdown
<img src="/image/m5stack_lvgl/M5Dropdown.webp" width="300px">
>Create drop-down menu
```clike
@@ -328,6 +352,9 @@ coming soon...
## M5Checkbox
<img src="/image/m5stack_lvgl/M5Checkbox.webp" width="300px">
>Create a checkbox
```clike
@@ -363,6 +390,9 @@ Checkbox.unchecked(unchecked_cb)
## M5Btn
<img src="/image/m5stack_lvgl/M5Btn.webp" width="300px">
>Create button
```clike
@@ -397,6 +427,8 @@ Btn.released(released_cb)
## M5Arc
<img src="/image/m5stack_lvgl/M5Arc.webp" width="300px">
>Create an arc-shaped dial (parameters: start, end are clockwise angles).
```clike
@@ -414,6 +446,8 @@ Arc.set_angles(0,90)
## M5Bar
<img src="/image/m5stack_lvgl/M5Bar.webp" width="300px">
>Create a progress bar.
```clike
@@ -440,6 +474,8 @@ Bar.get_value()
## M5Imgbtn
<img src="/image/m5stack_lvgl/M5Img.webp" width="300px">
>Create picture button.
```clike
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

+42 -1
View File
@@ -40,6 +40,9 @@ screen.del_screen()
>创建页签
<img src="/image/m5stack_lvgl/M5Tabview.webp" width="300px">
```clike
from m5stack_ui import *
@@ -59,8 +62,11 @@ tab.set_tab_name(index,"new_tab_name")
```
## M5Textarea
<img src="/image/m5stack_lvgl/M5Label.webp" width="300px">
>创建文本区域
@@ -80,6 +86,8 @@ Textarea.set_text("Hello World")
## M5Msgbox
<img src="/image/m5stack_lvgl/M5Msgbox.webp" width="300px">
>创建信息盒子
```clike
@@ -102,6 +110,8 @@ Msgbox.get_active_btn_text()
## M5Led
<img src="/image/m5stack_lvgl/M5Led.webp" width="300px">
>创建虚拟LED灯
```clike
@@ -126,6 +136,9 @@ Led.set_color(0x00ff00)
## M5Switch
<img src="/image/m5stack_lvgl/M5Switch.webp" width="300px">
>创建滑动开关
@@ -158,6 +171,8 @@ Switch.off(offCallback)
## M5Slider
<img src="/image/m5stack_lvgl/M5Slider.webp" width="300px">
>创建滑动条
@@ -190,8 +205,9 @@ Slider.changed(onChange)
## M5List
>创建列表
<img src="/image/m5stack_lvgl/M5List.webp" width="300px">
>创建列表
```clike
@@ -220,6 +236,9 @@ List.get_label_text(handle)
## M5Line
<img src="/image/m5stack_lvgl/M5Line.webp" width="300px">
>绘制直线
```clike
@@ -246,6 +265,8 @@ Line.set_opacity(100)
## M5Label
<img src="/image/m5stack_lvgl/M5Label.webp" width="300px">
>绘制文本标签
@@ -276,6 +297,8 @@ Label.get_width()
## M5Img
<img src="/image/m5stack_lvgl/M5Img.webp" width="300px">
>插入图像(仅支持png)。
```clike
@@ -293,6 +316,9 @@ Img.set_img_src(filename)
## M5Dropdown
<img src="/image/m5stack_lvgl/M5Dropdown.webp" width="300px">
>创建下拉菜单
```clike
@@ -328,6 +354,9 @@ coming soon...
## M5Checkbox
<img src="/image/m5stack_lvgl/M5Checkbox.webp" width="300px">
>创建勾选框
```clike
@@ -363,6 +392,9 @@ Checkbox.unchecked(unchecked_cb)
## M5Btn
<img src="/image/m5stack_lvgl/M5Btn.webp" width="300px">
>创建按键
```clike
@@ -397,6 +429,9 @@ Btn.released(released_cb)
## M5Arc
<img src="/image/m5stack_lvgl/M5Arc.webp" width="300px">
>创建弧形表盘(参数:start,end为顺时针角度)。
```clike
@@ -414,6 +449,9 @@ Arc.set_angles(0,90)
## M5Bar
<img src="/image/m5stack_lvgl/M5Bar.webp" width="300px">
>创建进度条。
```clike
@@ -440,6 +478,9 @@ Bar.get_value()
## M5Imgbtn
<img src="/image/m5stack_lvgl/M5Img.webp" width="300px">
>创建图片按键。
```clike