Skip to content

Commit af63204

Browse files
committed
Fixes toml reader
1 parent b493626 commit af63204

9 files changed

+633
-4
lines changed

display_configs/CYD-2432S024C.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[MCU.esp32]
2+
BOARD = "ESP32_GENERIC"
3+
BOARD_VARIANT = "SPIRAM"
4+
uart_repl_bitrate = 115200
5+
6+
[SPI.Bus.spi_bus]
7+
host = 1
8+
mosi = 13
9+
miso = 12
10+
sck = 14
11+
12+
[SPIBus.display_bus]
13+
spi_bus = "spi_bus"
14+
freq = 40000000
15+
dc = 2
16+
cs = 15
17+
18+
19+
[I2C.Bus.i2c_bus]
20+
host = 0
21+
scl = 32
22+
sda = 33
23+
freq = 400000
24+
25+
26+
[I2C.Device.indev_device]
27+
bus = "i2c_bus"
28+
dev_id = "cst820.I2C_ADDR"
29+
reg_bits = "cst820.BITS"
30+
31+
32+
[ILI9341.display]
33+
data_bus = "display_bus"
34+
display_width = 240
35+
display_height = 320
36+
backlight_pin = 27
37+
reset_pin = 17
38+
backlight_on_state = "st7789.STATE_PWM"
39+
color_space = "lv.COLOR_FORMAT.RGB565"
40+
color_byte_order = "ili9341.BYTE_ORDER_BGR"
41+
rgb565_byte_swap = true
42+
43+
[display._ORIENTATION_TABLE]
44+
value = [0, 96, 192, 160]
45+
46+
47+
[display.set_power]
48+
params = [true]
49+
50+
[display.init]
51+
params = [1]
52+
53+
[cst820.indev]
54+
device = "indev_device"
55+
56+
[display.set_backlight]
57+
params = [100]
58+
59+
[task_handler.TaskHandler]
60+
params=[]

display_configs/CYD-2432S028R.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[MCU.esp32]
2+
BOARD = "ESP32_GENERIC"
3+
BOARD_VARIANT = "SPIRAM"
4+
uart_repl_bitrate = 115200
5+
6+
[SPI.Bus.spi_bus]
7+
host = 1
8+
mosi = 13
9+
miso = 12
10+
sck = 14
11+
12+
[SPIBus.display_bus]
13+
spi_bus = "spi_bus"
14+
freq = 24000000
15+
dc = 2
16+
cs = 15
17+
18+
19+
[SPI.Bus.indev_bus]
20+
host = 2
21+
mosi= 32
22+
miso = 39
23+
sck = 25
24+
25+
26+
[SPI.Device.indev_device]
27+
spi_bus = "indev_bus"
28+
freq = 2000000
29+
cs = 33
30+
31+
32+
[ILI9341.display]
33+
data_bus = "display_bus"
34+
display_width = 320
35+
display_height = 240
36+
backlight_pin = 21
37+
backlight_on_state = "st7789.STATE_PWM"
38+
color_space = "lv.COLOR_FORMAT.RGB565"
39+
rgb565_byte_swap = true
40+
41+
[display._ORIENTATION_TABLE]
42+
value = [0, 96, 192, 160]
43+
44+
45+
[display.set_power]
46+
params = [true]
47+
48+
[display.init]
49+
params = [1]
50+
51+
[xpt2046.indev]
52+
device = "indev_device"
53+
54+
[display.set_backlight]
55+
params = [100]
56+
57+
[task_handler.TaskHandler]
58+
params=[]

display_configs/CYD-2432S032C.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[MCU.esp32]
2+
BOARD = "ESP32_GENERIC"
3+
BOARD_VARIANT = "SPIRAM"
4+
uart_repl_bitrate = 115200
5+
6+
[SPI.Bus.spi_bus]
7+
host = 1
8+
mosi = 13
9+
miso = 12
10+
sck = 14
11+
12+
[SPIBus.display_bus]
13+
spi_bus = "spi_bus"
14+
freq = 24000000
15+
dc = 2
16+
cs = 15
17+
18+
19+
[I2C.Bus.i2c_bus]
20+
host = 0
21+
scl = 32
22+
sda = 33
23+
freq = 400000
24+
25+
26+
[I2C.Device.indev_device]
27+
bus = "i2c_bus"
28+
dev_id = "gt911.I2C_ADDR"
29+
reg_bits = "gt911.BITS"
30+
31+
32+
[ST7789.display]
33+
data_bus = "display_bus"
34+
display_width = 240
35+
display_height = 320
36+
backlight_pin = 27
37+
backlight_on_state = "st7789.STATE_PWM"
38+
color_space = "lv.COLOR_FORMAT.RGB565"
39+
color_byte_order = "st7789.BYTE_ORDER_BGR"
40+
rgb565_byte_swap = true
41+
42+
[display.set_power]
43+
params = [true]
44+
45+
[display.init]
46+
params = []
47+
48+
[gt911.indev]
49+
device = "indev_device"
50+
51+
[indev.firmware_config.fw_config]
52+
53+
[fw_config.width]
54+
value=240
55+
56+
[fw_config.height]
57+
value=320
58+
59+
[fw_config.save]
60+
params=[]
61+
62+
[display.set_backlight]
63+
params = [100]
64+
65+
[task_handler.TaskHandler]
66+
params=[]

display_configs/CYD-3248S035C.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[MCU.esp32]
2+
BOARD = "ESP32_GENERIC"
3+
BOARD_VARIANT = "SPIRAM"
4+
uart_repl_bitrate = 115200
5+
6+
[SPI.Bus.spi_bus]
7+
host = 1
8+
mosi = 13
9+
miso = 12
10+
sck = 14
11+
12+
[SPIBus.display_bus]
13+
spi_bus = "spi_bus"
14+
freq = 24000000
15+
dc = 2
16+
cs = 15
17+
18+
19+
[I2C.Bus.i2c_bus]
20+
host = 0
21+
scl = 32
22+
sda = 33
23+
freq = 400000
24+
25+
26+
[I2C.Device.indev_device]
27+
bus = "i2c_bus"
28+
dev_id = "gt911.I2C_ADDR"
29+
reg_bits = "gt911.BITS"
30+
31+
32+
[ST7796.display]
33+
data_bus = "display_bus"
34+
display_width = 320
35+
display_height = 480
36+
backlight_pin = 27
37+
backlight_on_state = "st7796.STATE_PWM"
38+
reset_pin = 17
39+
reset_state = "st7796.STATE_LOW"
40+
color_space = "lv.COLOR_FORMAT.RGB565"
41+
color_byte_order = "st7796.BYTE_ORDER_BGR"
42+
rgb565_byte_swap = true
43+
44+
[display.set_power]
45+
params = [true]
46+
47+
[display.init]
48+
params = []
49+
50+
[gt911.indev]
51+
device = "indev_device"
52+
53+
[indev.firmware_config.fw_config]
54+
55+
[fw_config.width]
56+
value=320
57+
58+
[fw_config.height]
59+
value=480
60+
61+
[fw_config.save]
62+
params=[]
63+
64+
[display.set_backlight]
65+
params = [100]
66+
67+
[task_handler.TaskHandler]
68+
params=[]

display_configs/CYD-8048S043C.toml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[MCU.esp32]
2+
BOARD = "ESP32_GENERIC_S3"
3+
BOARD_VARIANT = "SPIRAM_OCT"
4+
flash_size = 8
5+
enable_jtag_repl = 'n'
6+
enable_cdc_repl = 'n'
7+
enable_uart_repl = 'y'
8+
uart_repl_bitrate = 115200
9+
10+
11+
[RGBBus.display_bus]
12+
data0 = 8
13+
data1 = 3
14+
data2 = 46
15+
data3 = 9
16+
data4 = 1
17+
data5 = 5
18+
data6 = 6
19+
data7 = 7
20+
data8 = 15
21+
data9 = 16
22+
data10 = 4
23+
data11 = 45
24+
data12 = 48
25+
data13 = 47
26+
data14 = 21
27+
data15 = 14
28+
hsync = 39
29+
vsync = 41
30+
de = 40
31+
pclk = 42
32+
freq = 12000000
33+
hsync_front_porch = 8
34+
hsync_back_porch = 8
35+
hsync_pulse_width = 4
36+
hsync_idle_low = true
37+
vsync_front_porch = 8
38+
vsync_back_porch = 8
39+
vsync_pulse_width = 4
40+
vsync_idle_low = true
41+
de_idle_high = false
42+
pclk_idle_high = false
43+
pclk_active_low = true
44+
45+
46+
[I2C.Bus.i2c_bus]
47+
host = 0
48+
scl = 20
49+
sda = 19
50+
freq = 400000
51+
52+
53+
[I2C.Device.indev_device]
54+
bus = "i2c_bus"
55+
dev_id = "ft6x36.I2C_ADDR"
56+
reg_bits = "ft6x36.BITS"
57+
58+
59+
[RGBDisplay.display]
60+
data_bus = "display_bus"
61+
display_width = 800
62+
display_height = 480
63+
backlight_pin = 2
64+
color_space = "lv.COLOR_FORMAT.RGB565"
65+
66+
67+
[display.set_power]
68+
params = [true]
69+
70+
71+
[display.init]
72+
params = []
73+
74+
[FT6x36.indev]
75+
device = "indev_device"
76+
77+
[indev.firmware_config.fw_config]
78+
79+
[fw_config.width]
80+
value=800
81+
82+
[fw_config.height]
83+
value=480
84+
85+
[fw_config.save]
86+
params=[]
87+
88+
[display.set_backlight]
89+
params = [100]
90+
91+
[task_handler.TaskHandler]
92+
params=[]

0 commit comments

Comments
 (0)