diff --git a/peripherals/Kconfig b/peripherals/Kconfig index a5da10d681..9aed413911 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -77,6 +77,7 @@ source "$PKGS_DIR/packages/peripherals/System_Run_LED/Kconfig" source "$PKGS_DIR/packages/peripherals/bt_mx01/Kconfig" source "$PKGS_DIR/packages/peripherals/RgPower/Kconfig" source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig" +source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/gc9a01/Kconfig b/peripherals/gc9a01/Kconfig new file mode 100644 index 0000000000..37d6d36e9e --- /dev/null +++ b/peripherals/gc9a01/Kconfig @@ -0,0 +1,48 @@ + +# Kconfig file for package gc9a01 +menuconfig PKG_USING_GC9A01 + bool "gc9a01: RT-Thread package for working with TFT LCD based on SPI." + default n + +if PKG_USING_GC9A01 + + config PKG_GC9A01_PATH + string + default "/packages/peripherals/gc9a01" + + config PKG_USING_GC9A01_SPI_BUS_NAME + string "SPI bus name" + default "spi0" + + config PKG_USING_GC9A01_DC_PIN + int "DC PIN number for example in frdm-mcxa153 board P3_1 -> 3*32+1" + default "97" + + config PKG_USING_GC9A01_RES_PIN + int "RES PIN number for example in frdm-mcxa153 board P3_30 -> 3*32+30" + default "126" + + config PKG_USING_GC9A01_CS_PIN + int "CS PIN number for example in frdm-mcxa153 board P1_3 -> 1*32+3" + default "35" + + config PKG_USING_GC9A01_SAMPLE + bool "Enable gc9a01 sample" + default n + + choice + prompt "Version" + default PKG_USING_GC9A01_LATEST_VERSION + help + Select the package version + + config PKG_USING_GC9A01_LATEST_VERSION + bool "latest" + endchoice + + config PKG_GC9A01_VER + string + default "latest" if PKG_USING_GC9A01_LATEST_VERSION + +endif + diff --git a/peripherals/gc9a01/package.json b/peripherals/gc9a01/package.json new file mode 100644 index 0000000000..81da10d0ec --- /dev/null +++ b/peripherals/gc9a01/package.json @@ -0,0 +1,30 @@ +{ + "name": "gc9a01", + "description": "gc9a01: RT-Thread package for working with TFT LCD based on SPI.", + "description_zh": "基于gc9a01的圆形TFT LCD驱动,支持SPI", + "enable": "PKG_USING_GC9A01", + "keywords": [ + "gc9a01", + "tft", + "lcd" + ], + "category": "peripherals", + "author": { + "name": "hywing", + "email": "hywing@aliyum.com", + "github": "hywing" + }, + "license": "Apache-2.0", + "repository": "https://github.com/hywing/rtt-gc9a01", + "icon": "unknown", + "homepage": "https://github.com/hywing/rtt-gc9a01", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/hywing/rtt-gc9a01.git", + "filename": "gc9a01-latest.zip", + "VER_SHA": "main" + } + ] +}