Add save to device support to ENE SMBus (ASUS Aura SMBus) controllers

This commit is contained in:
Adam Honse 2021-11-14 16:28:59 -06:00
parent 0bc7b568c5
commit d993737803
4 changed files with 24 additions and 10 deletions

View file

@ -197,6 +197,11 @@ unsigned char ENESMBusController::GetLEDBlue(unsigned int led)
return(ENERegisterRead(direct_reg + ( 3 * led ) + 1));
}
void ENESMBusController::SaveMode()
{
ENERegisterWrite(ENE_REG_APPLY, ENE_SAVE_VAL);
}
void ENESMBusController::SetAllColorsDirect(unsigned char red, unsigned char green, unsigned char blue)
{
unsigned char* colors = new unsigned char[led_count * 3];