Skip to content
Open
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 @@ -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"
Expand Down
51 changes: 51 additions & 0 deletions peripherals/tm1668/Kconfig
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions peripherals/tm1668/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}