Fix formatting

This commit is contained in:
Kuba Birecki 2023-06-13 16:00:21 +02:00
parent abeb5c8c49
commit cb22fa885a
3 changed files with 14 additions and 16 deletions

View file

@ -302,19 +302,19 @@ config ZMK_BACKLIGHT_AUTO_OFF_USB
endif
config ZMK_ANIMATION
bool "RGB Animations"
select LED_STRIP
bool "RGB Animations"
select LED_STRIP
if ZMK_ANIMATION
config ZMK_ANIMATION_FPS
int "Animation FPS"
range 0 60
default 30
int "Animation FPS"
range 0 60
default 30
config ZMK_ANIMATION_PIXEL_DISTANCE
bool "Generate a lookup table for distances between pixels"
default y
bool "Generate a lookup table for distances between pixels"
default y
#ZMK_ANIMATION
endif

View file

@ -5,9 +5,9 @@
*/
/ {
/omit-if-no-ref/ pixel: animation_pixel {
compatible = "zmk,animation-pixel";
label = "PIXEL";
#pixel-cells = <2>;
};
/omit-if-no-ref/ pixel: animation_pixel {
compatible = "zmk,animation-pixel";
label = "PIXEL";
#pixel-cells = <2>;
};
};

View file

@ -37,8 +37,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
/**
* LED Driver device pointers.
*/
static const struct device *drivers[] = {
DT_INST_FOREACH_PROP_ELEM(0, drivers, PHANDLE_TO_DEVICE)};
static const struct device *drivers[] = {DT_INST_FOREACH_PROP_ELEM(0, drivers, PHANDLE_TO_DEVICE)};
/**
* 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.
*/
static struct animation_pixel pixels[] = {
DT_INST_FOREACH_PROP_ELEM(0, pixels, PHANDLE_TO_PIXEL)};
static struct animation_pixel pixels[] = {DT_INST_FOREACH_PROP_ELEM(0, pixels, PHANDLE_TO_PIXEL)};
/**
* Size of the pixels array.