Skip to content

Commit decc4b5

Browse files
authored
feat:添加tm1668软件包
1 parent 0a51b69 commit decc4b5

3 files changed

Lines changed: 88 additions & 0 deletions

File tree

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig"
9090
source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig"
9191
source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig"
9292
source "$PKGS_DIR/packages/peripherals/st7305/Kconfig"
93+
source "$PKGS_DIR/packages/peripherals/tm1668/Kconfig"
9394

9495
if RT_VER_NUM > 0x40101
9596
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"

peripherals/tm1668/Kconfig

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
# Kconfig file for package TM1668
3+
menuconfig PKG_USING_TM1668
4+
bool "tm1668: led driver package based on 3 pin"
5+
default n
6+
help
7+
Select this option to use the TM1668 LED driver package.
8+
9+
if PKG_USING_TM1668
10+
config PKG_TM1668_PATH
11+
string
12+
default "/packages/peripherals/tm1668"
13+
14+
choice
15+
prompt "Version"
16+
default PKG_USING_TM1668_LATEST_VERSION
17+
help
18+
Select the package version
19+
20+
config PKG_USING_TM1668_V100
21+
bool "v1.0.0"
22+
23+
config PKG_USING_TM1668_LATEST_VERSION
24+
bool "latest"
25+
endchoice
26+
27+
config PKG_TM1668_VER
28+
string
29+
default "v1.0.0" if PKG_USING_TM1668_V100
30+
default "latest" if PKG_USING_TM1668_LATEST_VERSION
31+
32+
config TM1668_STB_PIN_NAME
33+
string "TM1668 STB pin name"
34+
default "PB.12"
35+
help
36+
Pin name for TM1668 STB (NianDong Board PB.12).
37+
38+
config TM1668_CLK_PIN_NAME
39+
string "TM1668 CLK pin name"
40+
default "PE.12"
41+
help
42+
Pin name for TM1668 CLK (NianDong Board PE.12).
43+
44+
config TM1668_DIO_PIN_NAME
45+
string "TM1668 DIO pin name"
46+
default "PB.10"
47+
help
48+
Pin name for TM1668 DIO (NianDong Board PB.10).
49+
50+
config USING_TM1668_DEMO
51+
bool "Enable TM1668 Demo (example folder)"
52+
default n
53+
help
54+
Enable this option to compile the example code in the "example" folder.
55+
endif

peripherals/tm1668/package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "tm1668",
3+
"description": "tm1668 driver based on 3 PIN",
4+
"description_zh": "使用3个PIN脚 完成特定通讯时序从而驱动tm1668芯片",
5+
"enable": "PKG_USING_TM1668",
6+
"keywords": [
7+
"tm1668",
8+
"lcd"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "龚金华",
13+
"email": "782730309@qq.com",
14+
"github": "GKoSon"
15+
},
16+
"license": "MIT",
17+
"repository": "https://github.com/GKoSon/tm1668",
18+
"homepage": "https://github.com/GKoSon/tm1668#readme",
19+
"site": [
20+
{
21+
"version": "v1.0.0",
22+
"URL": "https://github.com/GKoSon/tm1668/archive/refs/tags/v1.0.0.zip",
23+
"filename": "tm1668-1.0.0.zip"
24+
},
25+
{
26+
"version": "latest",
27+
"URL": "https://github.com/GKoSon/tm1668.git",
28+
"filename": "tm1668.zip",
29+
"VER_SHA": "main"
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)