Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[peripherals] add a new software package rtt-gc9a01 in peripherals #1818

Merged
merged 7 commits into from
Nov 7, 2024
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 @@ -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"
Expand Down
48 changes: 48 additions & 0 deletions peripherals/gc9a01/Kconfig
Original file line number Diff line number Diff line change
@@ -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

30 changes: 30 additions & 0 deletions peripherals/gc9a01/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}
Loading