diff --git a/app/drivers/led_strip/is31fl3741/Kconfig b/app/drivers/led_strip/is31fl3741/Kconfig index eee70914..ba0dc630 100644 --- a/app/drivers/led_strip/is31fl3741/Kconfig +++ b/app/drivers/led_strip/is31fl3741/Kconfig @@ -2,14 +2,14 @@ # SPDX-License-Identifier: MIT config IS31FL3741 - bool "IS31FL3741 LED Matrix driver" - depends on I2C - depends on LED_STRIP - help - Enable an IS31FL3741 LED Matrix driver. + bool "IS31FL3741 LED Matrix driver" + depends on I2C + depends on LED_STRIP + help + Enable an IS31FL3741 LED Matrix driver. - The IS31FL3741 is a general purpose 39x9 LED Matrix programmed - via an I2C compatible interface. Each LED can be dimmed - individually with 8-bit PWM data and 8-bit scaling data which - allows 256 steps of linear PWM dimming and 256 steps of DC current - adjustable level. + The IS31FL3741 is a general purpose 39x9 LED Matrix programmed + via an I2C compatible interface. Each LED can be dimmed + individually with 8-bit PWM data and 8-bit scaling data which + allows 256 steps of linear PWM dimming and 256 steps of DC current + adjustable level. diff --git a/app/drivers/led_strip/is31fl3741/is31fl3741.c b/app/drivers/led_strip/is31fl3741/is31fl3741.c index a1f3ac42..9efc0b08 100644 --- a/app/drivers/led_strip/is31fl3741/is31fl3741.c +++ b/app/drivers/led_strip/is31fl3741/is31fl3741.c @@ -165,7 +165,7 @@ int static is31fl3741_init(const struct device *dev) { if (!device_is_ready(config->i2c.bus)) { LOG_ERR("I2C device %s not ready", config->i2c.bus->name); - return -ENODEV; + return -ENODEV; } if (!device_is_ready(config->gpio.port)) { diff --git a/app/dts/bindings/led_strip/issi,is31fl3741.yaml b/app/dts/bindings/led_strip/issi,is31fl3741.yaml index d104d8e6..69b63403 100644 --- a/app/dts/bindings/led_strip/issi,is31fl3741.yaml +++ b/app/dts/bindings/led_strip/issi,is31fl3741.yaml @@ -54,16 +54,6 @@ properties: description: | How many RGB LEDs are driven by the IC. - gamma: - type: array - required: false - default: [ 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 10, 10, 10, 10, 12, 12, 12, 12, 14, 14, 14, 14, 16, 16, 16, 16, 18, 18, 18, 18, 20, 20, 20, 20, 22, 22, 22, 22, 24, 24, 24, 24, 26, 26, 26, 26, 29, 29, 29, 29, 32, 32, 32, 32, 35, 35, 35, 35, 38, 38, 38, 38, 41, 41, 41, 41, 44, 44, 44, 44, 47, 47, 47, 47, 50, 50, 50, 50, 53, 53, 53, 53, 57, 57, 57, 57, 61, 61, 61, 61, 65, 65, 65, 65, 69, 69, 69, 69, 73, 73, 73, 73, 77, 77, 77, 77, 81, 81, 81, 81, 85, 85, 85, 85, 89, 89, 89, 89, 94, 94, 94, 94, 99, 99, 99, 99, 104, 104, 104, 104, 109, 109, 109, 109, 114, 114, 114, 114, 119, 119, 119, 119, 124, 124, 124, 124, 129, 129, 129, 129, 134, 134, 134, 134, 140, 140, 140, 140, 146, 146, 146, 146, 152, 152, 152, 152, 158, 158, 158, 158, 164, 164, 164, 164, 170, 170, 170, 170, 176, 176, 176, 176, 182, 182, 182, 182, 188, 188, 188, 188, 195, 195, 195, 195, 202, 202, 202, 202, 209, 209, 209, 209, 216, 216, 216, 216, 223, 223, 223, 223, 230, 230, 230, 230, 237, 237, 237, 237, 244, 244, 244, 244, 251, 251, 251, 251, 255, 255, 255, 255 ] - description: | - Gamma correction lookup values. - The gamma values make the LED brightness seem more linear to human eyes. - Default values match the recommendation from the IC datasheet but note this may - or may not work for your particular LEDs. - red-scaling: type: int required: false @@ -90,3 +80,271 @@ properties: Blue channel scaling factor on a scale of 0-255. This setting adjusts the brightness of blue pixels relative to other channels by scaling the amount of current flowing through them. 255 being equivalent to the value of led-max-current. + + gamma: + type: array + required: false + description: | + Gamma correction lookup values. + The gamma values make the LED brightness seem more linear to human eyes. + Default values match the recommendation from the IC datasheet but note this may + or may not work for your particular LEDs. + default: + [ + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 3, + 3, + 3, + 3, + 4, + 4, + 4, + 4, + 5, + 5, + 5, + 5, + 6, + 6, + 6, + 6, + 7, + 7, + 7, + 7, + 8, + 8, + 8, + 8, + 10, + 10, + 10, + 10, + 12, + 12, + 12, + 12, + 14, + 14, + 14, + 14, + 16, + 16, + 16, + 16, + 18, + 18, + 18, + 18, + 20, + 20, + 20, + 20, + 22, + 22, + 22, + 22, + 24, + 24, + 24, + 24, + 26, + 26, + 26, + 26, + 29, + 29, + 29, + 29, + 32, + 32, + 32, + 32, + 35, + 35, + 35, + 35, + 38, + 38, + 38, + 38, + 41, + 41, + 41, + 41, + 44, + 44, + 44, + 44, + 47, + 47, + 47, + 47, + 50, + 50, + 50, + 50, + 53, + 53, + 53, + 53, + 57, + 57, + 57, + 57, + 61, + 61, + 61, + 61, + 65, + 65, + 65, + 65, + 69, + 69, + 69, + 69, + 73, + 73, + 73, + 73, + 77, + 77, + 77, + 77, + 81, + 81, + 81, + 81, + 85, + 85, + 85, + 85, + 89, + 89, + 89, + 89, + 94, + 94, + 94, + 94, + 99, + 99, + 99, + 99, + 104, + 104, + 104, + 104, + 109, + 109, + 109, + 109, + 114, + 114, + 114, + 114, + 119, + 119, + 119, + 119, + 124, + 124, + 124, + 124, + 129, + 129, + 129, + 129, + 134, + 134, + 134, + 134, + 140, + 140, + 140, + 140, + 146, + 146, + 146, + 146, + 152, + 152, + 152, + 152, + 158, + 158, + 158, + 158, + 164, + 164, + 164, + 164, + 170, + 170, + 170, + 170, + 176, + 176, + 176, + 176, + 182, + 182, + 182, + 182, + 188, + 188, + 188, + 188, + 195, + 195, + 195, + 195, + 202, + 202, + 202, + 202, + 209, + 209, + 209, + 209, + 216, + 216, + 216, + 216, + 223, + 223, + 223, + 223, + 230, + 230, + 230, + 230, + 237, + 237, + 237, + 237, + 244, + 244, + 244, + 244, + 251, + 251, + 251, + 251, + 255, + 255, + 255, + 255, + ]