/* Set a color using the three RGB LEDs.  */
static int set_static_color(const struct device *dev, uint8_t r, uint8_t g, uint8_t b)
/* Set a color using the three RGB LEDs.  */
static int set_static_color(const struct device *dev, uint8_t r, uint8_t g, uint8_t b)
{
	int ret;
	r = scale_color_to_percent(r);
	g = scale_color_to_percent(g);
	b = scale_color_to_percent(b);
	ret = led_set_brightness(dev, LED_R, r);
	if (ret) {
		LOG_ERR("Failed to set color.");
		return ret;
	}
	ret = led_set_brightness(dev, LED_G, g);
	if (ret) {
		LOG_ERR("Failed to set color.");
		return ret;
	}
	ret = led_set_brightness(dev, LED_B, b);
	if (ret) {
		LOG_ERR("Failed to set color.");
		return ret;
	}
	return 0;
}