Add more sleeps to prevent mode corruption and add a function for reading the LED configuration register

This commit is contained in:
Adam Honse
2020-08-30 01:43:14 -05:00
parent 877469cd2d
commit f577e5ef3c
3 changed files with 49 additions and 14 deletions

View File

@@ -55,15 +55,15 @@ void DetectPolychromeControllers(std::vector<i2c_smbus_interface*>& busses, std:
{
new_polychrome = new PolychromeController(busses[bus], 0x6A);
if(new_polychrome->GetLEDCount() != 0)
{
// if(new_polychrome->GetLEDCount() != 0)
// {
new_controller = new RGBController_Polychrome(new_polychrome);
rgb_controllers.push_back(new_controller);
}
else
{
delete new_polychrome;
}
// }
// else
// {
// delete new_polychrome;
// }
}
}