src/drivers/rgbled/rgbled.cpp
/**
 * Sent ENABLE flag to LED driver
 */
Sent ENABLE flag to LED driver
Sent ENABLE flag to LED driver
int
RGBLED::send_led_enable(bool enable)
{
	uint8_t settings_byte = 0;
	if (enable)
		settings_byte |= SETTING_ENABLE;
	settings_byte |= SETTING_NOT_POWERSAVE;
	const uint8_t msg[2] = { SUB_ADDR_SETTINGS, settings_byte};
	return transfer(msg, sizeof(msg), nullptr, 0);
}
int RGBLED :: send_led_enable ( bool enable ) { uint8_t settings_byte = 0 ; if ( enable ) settings_byte |= SETTING_ENABLE ; settings_byte |= SETTING_NOT_POWERSAVE ; const uint8_t msg [ 2 ] = { SUB_ADDR_SETTINGS , settings_byte } ; return transfer ( msg , sizeof ( msg ) , nullptr , 0 ) ; }
Sent ENABLE flag to LED driver
Sent ENABLE flag to LED driver