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
55 changes: 55 additions & 0 deletions peripherals/tm1668/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

# 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_V100
bool "v1.0.0"

config PKG_USING_TM1668_LATEST_VERSION
bool "latest"
endchoice

config PKG_TM1668_VER
string
default "v1.0.0" if PKG_USING_TM1668_V100
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
32 changes: 32 additions & 0 deletions peripherals/tm1668/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"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": "v1.0.0",
"URL": "https://github.com/GKoSon/tm1668/archive/refs/tags/v1.0.0.zip",
"filename": "tm1668-1.0.0.zip"
},
{
"version": "latest",
"URL": "https://github.com/GKoSon/tm1668.git",
"filename": "tm1668.zip",
"VER_SHA": "main"
}
]
Comment on lines 19 to 31
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 [package.json/包信息]: Missing fixed version entry / 缺少固定版本条目

English: According to RT-Thread Packages repository policy, packages should provide at least one fixed version (e.g., v1.0.0) in addition to "latest". The "site" array currently only includes "latest" pointing to the "main" branch. Please add a fixed version entry with an immutable tag or commit reference. This ensures users can select a stable, tested version.

Example format:

"site": [
  {
    "version": "v1.0.0",
    "URL": "https://github.com/GKoSon/tm1668/archive/refs/tags/v1.0.0.zip",
    "filename": "tm1668-1.0.0.zip",
    "VER_SHA": "NULL"
  },
  {
    "version": "latest",
    "URL": "https://github.com/GKoSon/tm1668.git",
    "filename": "tm1668.zip",
    "VER_SHA": "main"
  }
]

中文:根据 RT-Thread Packages 仓库规范,软件包应提供至少一个固定版本(例如 v1.0.0),而不仅仅是"latest"。当前"site"数组仅包含指向"main"分支的"latest"。请添加一个固定版本条目,使用不可变的 tag 或 commit 引用。这确保用户可以选择稳定且经过测试的版本。

Copilot generated this review using guidance from repository custom instructions.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

增加了tag 标记版本

}
Loading