diff --git a/peripherals/Kconfig b/peripherals/Kconfig index b9c15efcd7..b45effcdaf 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -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" diff --git a/peripherals/ST7789_SPI/Kconfig b/peripherals/ST7789_SPI/Kconfig new file mode 100644 index 0000000000..7dce1e952d --- /dev/null +++ b/peripherals/ST7789_SPI/Kconfig @@ -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 + diff --git a/peripherals/ST7789_SPI/package.json b/peripherals/ST7789_SPI/package.json new file mode 100644 index 0000000000..ae9ab50463 --- /dev/null +++ b/peripherals/ST7789_SPI/package.json @@ -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": "1852282973@qq.com", + "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" + } + ] +} \ No newline at end of file