diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 95d3369379..02f7e787fc 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -89,6 +89,7 @@ source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig" source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig" source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig" source "$PKGS_DIR/packages/peripherals/st7305/Kconfig" +source "$PKGS_DIR/packages/peripherals/tm1668/Kconfig" if RT_VER_NUM > 0x40101 source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig" diff --git a/peripherals/tm1668/Kconfig b/peripherals/tm1668/Kconfig new file mode 100644 index 0000000000..dce5220ad3 --- /dev/null +++ b/peripherals/tm1668/Kconfig @@ -0,0 +1,51 @@ + +# Kconfig file for package TM1668 +menuconfig PKG_USING_TM1668 + bool "tm1668: led driver package based on 3 pin" + default n + help + Select this option to use the TM1668 LED driver package. + +if PKG_USING_TM1668 + config PKG_TM1668_PATH + string + default "/packages/peripherals/tm1668" + + choice + prompt "Version" + default PKG_USING_TM1668_LATEST_VERSION + help + Select the package version + + config PKG_USING_TM1668_LATEST_VERSION + bool "latest" + endchoice + + config PKG_TM1668_VER + string + default "latest" if PKG_USING_TM1668_LATEST_VERSION + + config TM1668_STB_PIN_NAME + string "TM1668 STB pin name" + default "PB.12" + help + Pin name for TM1668 STB (NianDong Board PB.12). + + config TM1668_CLK_PIN_NAME + string "TM1668 CLK pin name" + default "PE.12" + help + Pin name for TM1668 CLK (NianDong Board PE.12). + + config TM1668_DIO_PIN_NAME + string "TM1668 DIO pin name" + default "PB.10" + help + Pin name for TM1668 DIO (NianDong Board PB.10). + + config USING_TM1668_DEMO + bool "Enable TM1668 Demo (example folder)" + default n + help + Enable this option to compile the example code in the "example" folder. +endif diff --git a/peripherals/tm1668/package.json b/peripherals/tm1668/package.json new file mode 100644 index 0000000000..436f4abaf5 --- /dev/null +++ b/peripherals/tm1668/package.json @@ -0,0 +1,27 @@ +{ + "name": "tm1668", + "description": "tm1668 driver based on 3 PIN", + "description_zh": "使用3个PIN脚 完成特定通讯时序从而驱动tm1668芯片", + "enable": "PKG_USING_TM1668", + "keywords": [ + "tm1668", + "lcd" + ], + "category": "peripherals", + "author": { + "name": "龚金华", + "email": "782730309@qq.com", + "github": "GKoSon" + }, + "license": "MIT", + "repository": "https://github.com/GKoSon/tm1668", + "homepage": "https://github.com/GKoSon/tm1668#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/GKoSon/tm1668.git", + "filename": "tm1668.zip", + "VER_SHA": "main" + } + ] +}