Skip to content

Commit 36eef9a

Browse files
authored
Merge pull request #1912 from Passionate0424/master
add ST7789_SPI package
2 parents b3263f7 + 1782b59 commit 36eef9a

File tree

3 files changed

+101
-0
lines changed

3 files changed

+101
-0
lines changed

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ source "$PKGS_DIR/packages/peripherals/Servo_sg90/Kconfig"
8383
source "$PKGS_DIR/packages/peripherals/sean_ws2812b/Kconfig"
8484
source "$PKGS_DIR/packages/peripherals/ic74hc165/Kconfig"
8585
source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig"
86+
source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig"
8687

8788
if RT_VER_NUM > 0x40101
8889
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"

peripherals/ST7789_SPI/Kconfig

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
2+
# Kconfig file for package ST7789_SPI
3+
menuconfig PKG_USING_ST7789_SPI
4+
bool "ST7789 driver package for RT-Thread using SPI interface."
5+
default n
6+
7+
if PKG_USING_ST7789_SPI
8+
config PKG_ST_7789_SPI_BUS_NAME
9+
string "spi bus name"
10+
default "spi0"
11+
12+
config PKG_ST_7789_SPI_DEVICE_NAME
13+
string "spi device name"
14+
default "spi_lcd"
15+
16+
config PKG_ST_7789_WIDTH
17+
int "Width of the LCD display"
18+
default 240
19+
20+
config PKG_ST_7789_HEIGHT
21+
int "Height of the LCD display"
22+
default 320
23+
24+
config PKG_ST_7789_DC_PIN
25+
int "DC pin connected to the LCD display"
26+
default 83
27+
28+
config PKG_ST_7789_RES_PIN
29+
int "RESET pin connected to the LCD display"
30+
default 47
31+
32+
config PKG_ST_7789_CS_PIN
33+
int "CS pin connected to the LCD display"
34+
default 5
35+
36+
config PKG_ST_7789_BLK_PIN
37+
int "Backlight pin connected to the LCD display"
38+
default 93
39+
40+
config PKG_USING_ST7789_SPI_SAMPLE
41+
bool "Enable st7789_spi sample"
42+
default n
43+
44+
config PKG_ST7789_PATH
45+
string
46+
default "/packages/peripherals/ST7789"
47+
48+
choice
49+
prompt "Version"
50+
default PKG_USING_ST7789_LATEST_VERSION
51+
help
52+
Select the package version
53+
54+
config PKG_USING_ST7789_V100
55+
bool "v1.0.0"
56+
57+
config PKG_USING_ST7789_LATEST_VERSION
58+
bool "latest"
59+
endchoice
60+
61+
config PKG_ST7789_VER
62+
string
63+
default "v1.0.0" if PKG_USING_ST7789_V100
64+
default "latest" if PKG_USING_ST7789_LATEST_VERSION
65+
66+
endif
67+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "ST7789_SPI",
3+
"description": "ST7789 driver package for RT-Thread using SPI interface.",
4+
"description_zh": "ST7789驱动软件包,使用SPI接口,支持显示字符、图片、图形等,适用于LVGL等图形界面。",
5+
"enable": "PKG_USING_ST7789",
6+
"keywords": [
7+
"ST7789"
8+
],
9+
"category": "peripherals",
10+
"author": {
11+
"name": "Passionate0424",
12+
"email": "[email protected]",
13+
"github": "Passionate0424"
14+
},
15+
"license": "MIT",
16+
"repository": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git",
17+
"icon": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git#readme",
18+
"homepage": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git#readme",
19+
"doc": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/blob/main/docs/API_DOC.md",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/archive/refs/tags/1.0.0.zip",
24+
"filename": "RT-Thread-ST7789-Package-1.0.0.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/archive/refs/heads/main.zip",
29+
"filename": "RT-Thread-ST7789-Package-main.zip",
30+
"VER_SHA": "main"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)