Lines Matching +full:num +full:- +full:channels

4  * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/led/led.h>
52 for (color = 0; color < info->num_colors; color++) { in prepare_color_buffer()
53 switch (info->color_mapping[color]) { in prepare_color_buffer()
65 info->color_mapping[color]); in prepare_color_buffer()
66 return -EINVAL; in prepare_color_buffer()
74 * @brief Run tests on a single LED using the LED-based API syscalls.
154 * @brief Run tests on all the LEDs using the channel-based API syscalls.
184 col = &buffer[info->index * 3]; in run_channel_test()
198 LOG_ERR("Failed to write channels, start=%d num=%d" in run_channel_test()
214 LOG_ERR("Failed to write channels, start=%d num=%d" in run_channel_test()
229 LOG_ERR("Failed to write channels, start=%d num=%d" in run_channel_test()
245 LOG_ERR("Failed to write channels, start=%d" in run_channel_test()
246 " num=%d err=%d\n", in run_channel_test()
263 LOG_ERR("Failed to write channels, start=%d " in run_channel_test()
264 "num=%d err=%d\n", bright_chan, in run_channel_test()
296 if (info->label) { in run_test()
297 printk(" - %s", info->label); in run_test()
299 printk(" - index:%d", info->index); in run_test()
300 printk(" - %d colors", info->num_colors); in run_test()
301 if (!info->color_mapping) { in run_test()
304 printk(" - %d", info->color_mapping[0]); in run_test()
305 for (col = 1; col < info->num_colors; col++) { in run_test()
306 printk(":%d", info->color_mapping[col]); in run_test()
340 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
350 lp50xx_dev->name); in main()
356 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
366 lp50xx_dev->name); in main()
372 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
382 lp50xx_dev->name); in main()
388 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
398 lp50xx_dev->name); in main()
404 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
414 lp50xx_dev->name); in main()
420 LOG_INF("Found LED controller %s", lp50xx_dev->name); in main()
430 lp50xx_dev->name); in main()