1 /* 2 * Copyright (c) 2022 Esco Medical ApS 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_INCLUDE_DRIVERS_LED_STRIP_TLC5971_H_ 8 #define ZEPHYR_INCLUDE_DRIVERS_LED_STRIP_TLC5971_H_ 9 10 /** 11 * @brief Maximum value for global brightness control, i.e 100% brightness 12 */ 13 #define TLC5971_GLOBAL_BRIGHTNESS_CONTROL_MAX 127 14 15 /** 16 * @brief Set the global brightness control levels for the tlc5971 strip. 17 * 18 * change will take effect on next update of the led strip 19 * 20 * @param dev LED strip device 21 * @param pixel global brightness values for RGB channels 22 23 * @return 0 on success, negative on error 24 */ 25 int tlc5971_set_global_brightness(const struct device *dev, struct led_rgb pixel); 26 27 #endif /* ZEPHYR_INCLUDE_DRIVERS_LED_STRIP_TLC5971_H_ */ 28