Fix formatting
This commit is contained in:
parent
abeb5c8c49
commit
cb22fa885a
3 changed files with 14 additions and 16 deletions
14
app/Kconfig
14
app/Kconfig
|
@ -302,19 +302,19 @@ config ZMK_BACKLIGHT_AUTO_OFF_USB
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config ZMK_ANIMATION
|
config ZMK_ANIMATION
|
||||||
bool "RGB Animations"
|
bool "RGB Animations"
|
||||||
select LED_STRIP
|
select LED_STRIP
|
||||||
|
|
||||||
if ZMK_ANIMATION
|
if ZMK_ANIMATION
|
||||||
|
|
||||||
config ZMK_ANIMATION_FPS
|
config ZMK_ANIMATION_FPS
|
||||||
int "Animation FPS"
|
int "Animation FPS"
|
||||||
range 0 60
|
range 0 60
|
||||||
default 30
|
default 30
|
||||||
|
|
||||||
config ZMK_ANIMATION_PIXEL_DISTANCE
|
config ZMK_ANIMATION_PIXEL_DISTANCE
|
||||||
bool "Generate a lookup table for distances between pixels"
|
bool "Generate a lookup table for distances between pixels"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
#ZMK_ANIMATION
|
#ZMK_ANIMATION
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
/omit-if-no-ref/ pixel: animation_pixel {
|
/omit-if-no-ref/ pixel: animation_pixel {
|
||||||
compatible = "zmk,animation-pixel";
|
compatible = "zmk,animation-pixel";
|
||||||
label = "PIXEL";
|
label = "PIXEL";
|
||||||
#pixel-cells = <2>;
|
#pixel-cells = <2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,8 +37,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
|
||||||
/**
|
/**
|
||||||
* LED Driver device pointers.
|
* LED Driver device pointers.
|
||||||
*/
|
*/
|
||||||
static const struct device *drivers[] = {
|
static const struct device *drivers[] = {DT_INST_FOREACH_PROP_ELEM(0, drivers, PHANDLE_TO_DEVICE)};
|
||||||
DT_INST_FOREACH_PROP_ELEM(0, drivers, PHANDLE_TO_DEVICE)};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Size of the LED driver device pointers array.
|
* Size of the LED driver device pointers array.
|
||||||
|
@ -59,8 +58,7 @@ static const struct device *animation_root = DEVICE_DT_GET(DT_CHOSEN(zmk_animati
|
||||||
/**
|
/**
|
||||||
* Pixel configuration.
|
* Pixel configuration.
|
||||||
*/
|
*/
|
||||||
static struct animation_pixel pixels[] = {
|
static struct animation_pixel pixels[] = {DT_INST_FOREACH_PROP_ELEM(0, pixels, PHANDLE_TO_PIXEL)};
|
||||||
DT_INST_FOREACH_PROP_ELEM(0, pixels, PHANDLE_TO_PIXEL)};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Size of the pixels array.
|
* Size of the pixels array.
|
||||||
|
|
Loading…
Add table
Reference in a new issue