Skip to content

Commit b33ce96

Browse files
authored
Simplify LVGL
1 parent 70eab7f commit b33ce96

File tree

1 file changed

+2
-49
lines changed

1 file changed

+2
-49
lines changed

docs/LVGL.md

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -25,52 +25,7 @@ After compiling Tasmota with LVGL support and configuring [uDisplay](Displays.md
2525

2626
This example uses the [M5Stack Fire](https://docs.m5stack.com/en/core/fire) device.
2727

28-
Use the following template to define the relevant SPI GPIOs. Also set one of the unused GPIOs to `Option A3`.
29-
30-
The complete configuration for M5Stack Fire is:
31-
32-
```json
33-
Template {"NAME":"M5stack Fire","GPIO":[6210,1,1,1,1,1,1,1,1,1,768,1,1,1,736,672,0,640,608,704,0,3872,3872,800,0,0,0,0,992,1024,1,0,0,34,33,32],"FLAG":0,"BASE":1,"CMND":"Module 0"}
34-
```
35-
36-
Save the following file as `display.ini` in the file system:
37-
38-
```
39-
:H,ILI9341,320,240,16,SPI,1,*,*,*,*,*,*,*,40
40-
:B,60,1
41-
:I
42-
EF,3,03,80,02
43-
CF,3,00,C1,30
44-
ED,4,64,03,12,81
45-
E8,3,85,00,78
46-
CB,5,39,2C,00,34,02
47-
F7,1,20
48-
EA,2,00,00
49-
C0,1,23
50-
C1,1,10
51-
C5,2,3e,28
52-
C7,1,86
53-
36,1,48
54-
37,1,00
55-
3A,1,55
56-
B1,2,00,18
57-
B6,3,08,82,27
58-
F2,1,00
59-
26,1,01
60-
E0,0F,0F,31,2B,0C,0E,08,4E,F1,37,07,10,03,0E,09,00
61-
E1,0F,00,0E,14,03,11,07,31,C1,48,08,0F,0C,31,36,0F
62-
11,80
63-
29,80
64-
:o,28
65-
:O,29
66-
:A,2A,2B,2C
67-
:R,36
68-
:0,08,00,00,00
69-
:1,68,00,00,01
70-
:2,C8,00,00,02
71-
:3,A8,00,00,03
72-
#
73-
```
28+
Use the **Auto-Conf** feature in **Configuration** menu to set up the GPIOs and the `display.ini` file. After a couple of restarts, the device should show a splash scren with a Tasmota logo. You are ready to start.
7429

7530
Then open the Berry console and copy/paste the following: (alternatively create an `autoexec.be` file with this content):
7631

@@ -85,9 +40,7 @@ scr = lv.scr_act() # default screen object
8540
f20 = lv.montserrat_font(20) # load embedded Montserrat 20
8641
8742
#- Background with a gradient from black #000000 (bottom) to dark blue #0000A0 (top) -#
88-
scr.set_style_bg_color(lv.color(0x0000A0), lv.PART_MAIN | lv.STATE_DEFAULT)
89-
scr.set_style_bg_grad_color(lv.color(0x000000), lv.PART_MAIN | lv.STATE_DEFAULT)
90-
scr.set_style_bg_grad_dir(lv.GRAD_DIR_VER, lv.PART_MAIN | lv.STATE_DEFAULT)
43+
scr.set_style_bg_color(lv.color(0x000077), lv.PART_MAIN | lv.STATE_DEFAULT)
9144
9245
#- Upper state line -#
9346
stat_line = lv.label(scr)

0 commit comments

Comments
 (0)