Skip to content

Commit 91aa390

Browse files
committed
feat:添加ikunLed软件包
1 parent bc4de27 commit 91aa390

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ source "$PKGS_DIR/packages/peripherals/ic74hc165/Kconfig"
8585
source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig"
8686
source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig"
8787
source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig"
88+
source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig"
8889

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

peripherals/ikunLed/Kconfig

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
menuconfig PKG_USING_IKUNLED
2+
bool "Enable PKG_USING_IKUNLED"
3+
default n
4+
help
5+
Enable this option to use the IKUNLED package.
6+
7+
if PKG_USING_IKUNLED
8+
config PKG_IKUNLED_PATH
9+
string
10+
default "/packages/peripherals/ikunLed"
11+
12+
choice
13+
prompt "Version"
14+
default PKG_USING_IKLED_LATEST_VERSION
15+
help
16+
Select the package version
17+
18+
config PKG_USING_IKLED_LATEST_VERSION
19+
bool "latest"
20+
endchoice
21+
22+
config PKG_IKLED_VER
23+
string
24+
default "latest" if PKG_USING_IKLED_LATEST_VERSION
25+
26+
config USING_IKUNLED_DEMO
27+
bool "Enable IKUNLED Demo (example folder)"
28+
default n
29+
help
30+
Enable this option to compile the example code in the "example" folder.
31+
32+
if USING_IKUNLED_DEMO
33+
config IKUNLED_DEMO_NAME
34+
string "IKUNLED Demo Name"
35+
default "ledX"
36+
help
37+
Configure the name identifier for the IKUNLED demo.
38+
39+
config IKUNLED_DEMO_PIN
40+
string "IKUNLED Demo Control Pin"
41+
default "PB.12"
42+
help
43+
Configure the GPIO pin (format: Port.Pin, e.g., PB.12).
44+
45+
choice
46+
prompt "IKUNLED Demo Active Level"
47+
default IKUNLED_DEMO_ACTIVE_HIGH
48+
49+
config IKUNLED_DEMO_ACTIVE_LOW
50+
bool "Low level active (0)"
51+
52+
config IKUNLED_DEMO_ACTIVE_HIGH
53+
bool "High level active (1)"
54+
endchoice
55+
56+
config IKUNLED_DEMO_ACTIVE_LEVEL
57+
int
58+
default 1 if IKUNLED_DEMO_ACTIVE_HIGH
59+
default 0 if IKUNLED_DEMO_ACTIVE_LOW
60+
default 1
61+
endif
62+
endif

peripherals/ikunLed/package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "ikunLed",
3+
"description": "led driver based on pin&timer device",
4+
"description_zh": "基于PIN和软定时器的LED驱动",
5+
"enable": "PKG_USING_IKUNLED",
6+
"keywords": [
7+
"ikunled",
8+
"ikled"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "龚金华",
13+
"email": "[email protected]",
14+
"github": "GKoSon"
15+
},
16+
"license": "MIT",
17+
"repository": "https://github.com/GKoSon/ikunLed",
18+
"homepage": "https://github.com/GKoSon/ikunLed#readme",
19+
"site": [
20+
{
21+
"version": "v1.0.0",
22+
"URL": "https://github.com/GKoSon/ikunLed/archive/refs/tags/1.0.0.zip",
23+
"filename": "ikunLed-1.1.0.zip"
24+
},
25+
{
26+
"version": "latest",
27+
"URL": "https://github.com/GKoSon/ikunLed.git",
28+
"filename": "ikunLed.zip",
29+
"VER_SHA": "main"
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)