/* Blink the LED in the given color. 
Currently it is only possible to create colors by turning the three LEDs completely on or off. Proper mixing is not supported by the underlying API. */
static int blink_color(const struct device *dev, bool r, bool g, bool b, uint32_t delay_on, uint32_t delay_off)
/* Blink the LED in the given color. 
Currently it is only possible to create colors by turning the three LEDs completely on or off. Proper mixing is not supported by the underlying API. */
static int blink_color(const struct device *dev, bool r, bool g, bool b, uint32_t delay_on, uint32_t delay_off)
{
	int ret;
	if (r) {
		ret = led_blink(dev, LED_R, delay_on, delay_off);
		if (ret) {
			LOG_ERR("Failed to set color.");
			return ret;
		}
	}
	if (g) {
		ret = led_blink(dev, LED_G, delay_on, delay_off);
		if (ret) {
			LOG_ERR("Failed to set color.");
			return ret;
		}
	}
	if (b) {
		ret = led_blink(dev, LED_B, delay_on, delay_off);
		if (ret) {
			LOG_ERR("Failed to set color.");
			return ret;
		}
	}
	return 0;
}