Lines Matching +full:0 +full:x70
25 #define NCP5623_LED_CURRENT 0x20
26 #define NCP5623_LED_PWM0 0x40
27 #define NCP5623_LED_PWM1 0x60
28 #define NCP5623_LED_PWM2 0x80
33 #define NCP5623_MIN_BRIGHTNESS 0
34 #define NCP5623_MAX_BRIGHTNESS 0x1f
64 return 0; in ncp5623_get_info()
72 uint8_t buf[6] = {0x70, NCP5623_LED_PWM0, 0x70, NCP5623_LED_PWM1, 0x70, NCP5623_LED_PWM2}; in ncp5623_set_color()
85 buf[1] = buf[1] | color[0] / 8; in ncp5623_set_color()
97 int ret = 0; in ncp5623_set_brightness()
111 /* Rescale 0..100 to 0..31 */ in ncp5623_set_brightness()
114 ret = i2c_reg_write_byte_dt(&config->bus, led_channels[led] | value, 0x70); in ncp5623_set_brightness()
116 if (ret < 0) { in ncp5623_set_brightness()
130 return ncp5623_set_brightness(dev, led, 0); in ncp5623_led_off()
138 uint8_t buf[6] = {0x70, NCP5623_LED_PWM0, 0x70, NCP5623_LED_PWM1, 0x70, NCP5623_LED_PWM2}; in ncp5623_led_init()
146 led_info = ncp5623_led_to_info(config, 0); in ncp5623_led_init()
157 for (i = 0; i < config->num_leds; i++) { in ncp5623_led_init()
158 led_info = ncp5623_led_to_info(config, 0); in ncp5623_led_init()
183 return 0; in ncp5623_led_init()