|
| 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 |
0 commit comments