forked from RT-Thread/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
502b1e5
commit c84f65b
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
# Kconfig file for package max7219 | ||
menuconfig PKG_USING_MAX7219 | ||
bool "MAX7219: for the digital tube" | ||
select RT_USING_PIN | ||
select RT_USING_SPI | ||
default n | ||
|
||
if PKG_USING_MAX7219 | ||
|
||
config PKG_MAX7219_CHIPS_NUMBER | ||
int "the chips of digital tubes" | ||
default 1 | ||
|
||
config PKG_MAX7219_SPI_BUS_NAME | ||
string "spi bus name" | ||
default "spi1" | ||
|
||
config PKG_MAX7219_SPI_DEVICE_NAME | ||
string "spi device name" | ||
default "spi10" | ||
|
||
config PKG_MAX7219_PATH | ||
string | ||
default "/packages/peripherals/max7219" | ||
|
||
choice | ||
prompt "Version" | ||
default PKG_USING_MAX7219_V100 | ||
help | ||
Select the package version | ||
|
||
config PKG_USING_MAX7219_V100 | ||
bool "v1.0.0" | ||
|
||
config PKG_USING_MAX7219_LATEST_VERSION | ||
bool "latest" | ||
endchoice | ||
|
||
config PKG_MAX7219_VER | ||
string | ||
default "v1.0.0" if PKG_USING_MAX7219_V100 | ||
default "latest" if PKG_USING_MAX7219_LATEST_VERSION | ||
|
||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "max7219", | ||
"description": "a MAX7219 package for the digital tube", | ||
"description_zh": "本软件包是在数码管上应用 MAX7219 的驱动包", | ||
"enable": "PKG_USING_MAX7219", | ||
"keywords": [ | ||
"max7219" | ||
], | ||
"category": "peripherals", | ||
"author": { | ||
"name": "redocCheng", | ||
"email": "[email protected]", | ||
"github": "https://github.com/redocCheng" | ||
}, | ||
"license": "Apache-2.0", | ||
"repository": "https://github.com/redocCheng/max7219", | ||
"homepage": "https://github.com/redocCheng/max7219", | ||
"site": [ | ||
{ | ||
"version": "v1.0.0", | ||
"URL": "https://github.com/redocCheng/max7219/archive/1.0.0.zip", | ||
"filename": "max7219-1.0.0.zip", | ||
"VER_SHA": " " | ||
}, | ||
{ | ||
"version": "latest", | ||
"URL": "https://github.com/redocCheng/max7219.git", | ||
"filename": "max7219-master.zip", | ||
"VER_SHA": "master" | ||
} | ||
] | ||
} |