Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ source "$PKGS_DIR/packages/peripherals/Servo_sg90/Kconfig"
source "$PKGS_DIR/packages/peripherals/sean_ws2812b/Kconfig"
source "$PKGS_DIR/packages/peripherals/ic74hc165/Kconfig"
source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig"
source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig"

if RT_VER_NUM > 0x40101
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"
Expand Down
67 changes: 67 additions & 0 deletions peripherals/ST7789_SPI/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

# Kconfig file for package ST7789_SPI
menuconfig PKG_USING_ST7789_SPI
bool "ST7789 driver package for RT-Thread using SPI interface."
default n

if PKG_USING_ST7789_SPI
config PKG_ST_7789_SPI_BUS_NAME
string "spi bus name"
default "spi0"

config PKG_ST_7789_SPI_DEVICE_NAME
string "spi device name"
default "spi_lcd"

config PKG_ST_7789_WIDTH
int "Width of the LCD display"
default 240

config PKG_ST_7789_HEIGHT
int "Height of the LCD display"
default 320

config PKG_ST_7789_DC_PIN
int "DC pin connected to the LCD display"
default 83

config PKG_ST_7789_RES_PIN
int "RESET pin connected to the LCD display"
default 47

config PKG_ST_7789_CS_PIN
int "CS pin connected to the LCD display"
default 5

config PKG_ST_7789_BLK_PIN
int "Backlight pin connected to the LCD display"
default 93

config PKG_USING_ST7789_SPI_SAMPLE
bool "Enable st7789_spi sample"
default n

config PKG_ST7789_PATH
string
default "/packages/peripherals/ST7789"

choice
prompt "Version"
default PKG_USING_ST7789_LATEST_VERSION
help
Select the package version

config PKG_USING_ST7789_V100
bool "v1.0.0"

config PKG_USING_ST7789_LATEST_VERSION
bool "latest"
endchoice

config PKG_ST7789_VER
string
default "v1.0.0" if PKG_USING_ST7789_V100
default "latest" if PKG_USING_ST7789_LATEST_VERSION

endif

33 changes: 33 additions & 0 deletions peripherals/ST7789_SPI/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "ST7789_SPI",
"description": "ST7789 driver package for RT-Thread using SPI interface.",
"description_zh": "ST7789驱动软件包,使用SPI接口,支持显示字符、图片、图形等,适用于LVGL等图形界面。",
"enable": "PKG_USING_ST7789",
"keywords": [
"ST7789"
],
"category": "peripherals",
"author": {
"name": "Passionate0424",
"email": "[email protected]",
"github": "Passionate0424"
},
"license": "MIT",
"repository": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git",
"icon": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git#readme",
"homepage": "https://github.com/Passionate0424/RT-Thread-ST7789-Package.git#readme",
"doc": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/blob/main/docs/API_DOC.md",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/archive/refs/tags/1.0.0.zip",
"filename": "RT-Thread-ST7789-Package-1.0.0.zip"
},
{
"version": "latest",
"URL": "https://github.com/Passionate0424/RT-Thread-ST7789-Package/archive/refs/heads/main.zip",
"filename": "RT-Thread-ST7789-Package-main.zip",
"VER_SHA": "main"
}
]
}
Loading