Home
last modified time | relevance | path

Searched full:brightness (Results 1 – 25 of 72) sorted by relevance

123

/Zephyr-Core-3.5.0/samples/drivers/led_is31fl3216a/src/
Dmain.c31 LOG_ERR("Could not change brightness: %i", status); in pulse_led()
41 LOG_ERR("Could not change brightness: %i", status); in pulse_led()
51 uint8_t brightness[WRITE_CHANNELS_LEDS_COUNT]; in pulse_leds() local
55 memset(brightness, percent, sizeof(brightness)); in pulse_leds()
58 brightness); in pulse_leds()
60 LOG_ERR("Could not change brightness: %i", status); in pulse_leds()
68 memset(brightness, percent, sizeof(brightness)); in pulse_leds()
71 brightness); in pulse_leds()
73 LOG_ERR("Could not change brightness: %i", status); in pulse_leds()
/Zephyr-Core-3.5.0/include/zephyr/drivers/led_strip/
Dtlc5971.h11 * @brief Maximum value for global brightness control, i.e 100% brightness
16 * @brief Set the global brightness control levels for the tlc5971 strip.
21 * @param pixel global brightness values for RGB channels
/Zephyr-Core-3.5.0/drivers/auxdisplay/
Dauxdisplay_pt6314.c59 uint8_t brightness; member
110 PT6314_FS_BRIGHTNESS(data->brightness); in auxdisplay_pt6314_function_set()
218 static int auxdisplay_pt6314_brightness_set(const struct device *dev, uint8_t brightness) in auxdisplay_pt6314_brightness_set() argument
222 if (brightness < PT6314_BRIGHTNESS_MIN || brightness > PT6314_BRIGHTNESS_MAX) { in auxdisplay_pt6314_brightness_set()
226 data->brightness = brightness; in auxdisplay_pt6314_brightness_set()
231 static int auxdisplay_pt6314_brightness_get(const struct device *dev, uint8_t *brightness) in auxdisplay_pt6314_brightness_get() argument
235 *brightness = data->brightness; in auxdisplay_pt6314_brightness_get()
311 .brightness.minimum = PT6314_BRIGHTNESS_MIN, \
312 .brightness.maximum = PT6314_BRIGHTNESS_MAX, \
327 .brightness = PT6314_BRIGHTNESS_MAX, \
Dauxdisplay_itron.c44 uint8_t brightness; member
124 data->brightness = 0; in auxdisplay_itron_init()
237 static int auxdisplay_itron_brightness_get(const struct device *dev, uint8_t *brightness) in auxdisplay_itron_brightness_get() argument
245 *brightness = data->brightness; in auxdisplay_itron_brightness_get()
254 static int auxdisplay_itron_brightness_set(const struct device *dev, uint8_t brightness) in auxdisplay_itron_brightness_set() argument
258 brightness}; in auxdisplay_itron_brightness_set()
261 if (brightness < AUXDISPLAY_ITRON_BRIGHTNESS_MIN || in auxdisplay_itron_brightness_set()
262 brightness > AUXDISPLAY_ITRON_BRIGHTNESS_MAX) { in auxdisplay_itron_brightness_set()
273 data->brightness = brightness; in auxdisplay_itron_brightness_set()
431 .brightness.minimum = AUXDISPLAY_ITRON_BRIGHTNESS_MIN, \
[all …]
Dauxdisplay_handlers.c97 uint8_t *brightness) in z_vrfy_auxdisplay_brightness_get() argument
100 return z_impl_auxdisplay_brightness_get(dev, brightness); in z_vrfy_auxdisplay_brightness_get()
105 uint8_t brightness) in z_vrfy_auxdisplay_brightness_set() argument
108 return z_impl_auxdisplay_brightness_set(dev, brightness); in z_vrfy_auxdisplay_brightness_set()
/Zephyr-Core-3.5.0/drivers/led/
Dlp5569.c42 uint8_t brightness) in lp5569_led_set_brightness() argument
48 if (led >= LP5569_NUM_LEDS || brightness > 100) { in lp5569_led_set_brightness()
53 val = brightness * 255 / 100; in lp5569_led_set_brightness()
66 /* Set LED brightness to 100 % */ in lp5569_led_on()
72 /* Set LED brightness to 0 % */ in lp5569_led_off()
Dled_context.h28 /* Minimum acceptable LED brightness value */
30 /* Maximum acceptable LED brightness value */
Dlp5562.c17 * 1. The brightness of each LED can be configured directly by setting a
23 * - Set the brightness.
24 * - Fade the brightness over time.
80 /* Brightness limits in percent */
170 * brightness value instead of using the execution engines.
583 * @brief Program a command to set a fixed brightness to the given engine.
588 * @param brightness Brightness to be set for the LED in percent.
597 uint8_t brightness) in lp5562_program_set_brightness() argument
603 if ((brightness < dev_data->min_brightness) || in lp5562_program_set_brightness()
604 (brightness > dev_data->max_brightness)) { in lp5562_program_set_brightness()
[all …]
/Zephyr-Core-3.5.0/drivers/led_strip/
Dtlc5971.c78 /** Bit mask for global brightness control for color 1 in data byte 26, upper 5 bits of GBC */
81 /** Bit mask for global brightness control for color 1 in data byte 25, lower 2 bits of GBC */
84 /** Bit mask for global brightness control for color 2 in data byte 25, upper 6 bits of GBC */
87 /** Bit mask for global brightness control for color 2 in data byte 24, lower 1 bits of GBC */
90 /** Bit mask for global brightness control for color 3 in data byte 24, all 7 bits of GBC */
109 * @param gbc_color_1 global brightness control for color 1 LEDs
121 * @param gbc_color_1 global brightness control for color 1 LEDs
122 * @param gbc_color_2 global brightness control for color 2 LEDs
134 * @param gbc_color_2 global brightness control for color 2 LEDs
135 * @param gbc_color_3 global brightness control for color 3 LEDs
[all …]
/Zephyr-Core-3.5.0/include/zephyr/drivers/
Dauxdisplay.h31 /** @brief Used for minimum and maximum brightness/backlight values if not supported */
66 /** @brief Light levels for brightness and/or backlight. If not supported by a
88 /** Brightness details for display (if supported) */
89 struct auxdisplay_light brightness; member
229 * brightness settings of the display
232 typedef int (*auxdisplay_brightness_get_t)(const struct device *dev, uint8_t *brightness);
236 * @brief Callback API to set the brightness of the display
239 typedef int (*auxdisplay_brightness_set_t)(const struct device *dev, uint8_t brightness);
601 * @brief Get the current brightness level of an auxiliary display
604 * @param brightness Will be updated with the current brightness
[all …]
Ddisplay.h172 * @brief Callback API to set display brightness
176 const uint8_t brightness);
337 * @brief Set the brightness of the display
339 * Set the brightness of the display in steps of 1/256, where 255 is full
340 * brightness and 0 is minimal.
343 * @param brightness Brightness in steps of 1/256
348 uint8_t brightness) in display_set_brightness() argument
353 return api->set_brightness(dev, brightness); in display_set_brightness()
/Zephyr-Core-3.5.0/drivers/display/
Ddisplay_otm8009a.h60 /** Write Control Display: brightness control. */
67 /** Adaptibe Brightness Control: off. */
69 /** Adaptibe Brightness Control: user interface. */
71 /** Adaptibe Brightness Control: still picture. */
73 /** Adaptibe Brightness Control: moving image. */
DKconfig.nrf_led_matrix12 GPIOs. The driver allows setting one of 256 levels of brightness
Ddisplay_max7219.c235 static int max7219_set_brightness(const struct device *dev, const uint8_t brightness) in max7219_set_brightness() argument
241 * map the brightness from [0, 255] to [0, 15] in max7219_set_brightness()
243 ret = max7219_transmit_all(dev, MAX7219_REG_INTENSITY, brightness >> 4); in max7219_set_brightness()
245 LOG_ERR("Failed to set brightness"); in max7219_set_brightness()
340 LOG_ERR("Failed to set global brightness"); in max7219_init()
Ddisplay_nrf_led_matrix.c110 uint8_t brightness; member
169 const uint8_t brightness) in api_set_brightness() argument
172 uint8_t new_brightness = CLAMP(brightness, 1, BRIGHTNESS_MAX); in api_set_brightness()
173 int16_t delta = (int16_t)new_brightness - dev_data->brightness; in api_set_brightness()
175 dev_data->brightness = new_brightness; in api_set_brightness()
267 (data & mask) ? dev_data->brightness : 0; in api_write()
529 .brightness = 0xFF,
/Zephyr-Core-3.5.0/samples/basic/fade_led/
DREADME.rst12 The LED starts off increases its brightness until it is fully or nearly fully
13 on. The brightness then decreases until the LED is off, completing on fade
/Zephyr-Core-3.5.0/samples/drivers/ht16k33/
DREADME.rst18 3. reduce the brightness gradually from 100% to 0%
19 4. turn off all LEDs, restore 100% brightness, and start over
/Zephyr-Core-3.5.0/samples/drivers/led_is31fl3733/src/
Dmain.c25 /* Set all LEDs to full brightness */ in led_channel_write()
26 printk("Set all LEDs to full brightness\n"); in led_channel_write()
63 /* Set LED brightness to low value sequentially */ in led_brightness()
64 printk("Set LEDs to half brightness sequentially\n"); in led_brightness()
/Zephyr-Core-3.5.0/samples/drivers/led_pwm/src/
Dmain.c61 /* Increase LED brightness gradually up to the maximum level. */ in run_led_test()
62 LOG_INF(" Increasing brightness gradually"); in run_led_test()
66 LOG_ERR("err=%d brightness=%d\n", err, level); in run_led_test()
/Zephyr-Core-3.5.0/samples/drivers/ht16k33/src/
Dmain.c63 LOG_INF("Setting LED brightness to %d%%", i); in main()
68 LOG_INF("Turning all LEDs off and restoring 100%% brightness"); in main()
/Zephyr-Core-3.5.0/dts/bindings/auxdisplay/
Dhit,hd44780.yaml44 brightness-gpios:
46 description: Optional GPIO used for controlling the brightness (contrast)
/Zephyr-Core-3.5.0/samples/drivers/led_pwm/
Dsample.yaml19 - "Increasing brightness gradually"
/Zephyr-Core-3.5.0/dts/bindings/led/
Dti,lp50xx.yaml18 If enabled a logarithmic dimming scale curve is used for LED brightness
/Zephyr-Core-3.5.0/samples/boards/nrf/nrf_led_matrix/src/
Dmain.c97 uint8_t brightness = 0; in show_all_brightness_levels() local
100 --brightness; in show_all_brightness_levels()
101 ret = display_set_brightness(dev, brightness); in show_all_brightness_levels()
108 } while (brightness); in show_all_brightness_levels()
/Zephyr-Core-3.5.0/samples/drivers/led_pca9633/
DREADME.rst15 3. set the brightness to 50%

123