Basic i2c

This commit is contained in:
Adam Honse 2022-11-27 23:15:53 +00:00
parent e0be60de21
commit 428692fa3a
6 changed files with 124 additions and 5 deletions

View file

@ -74,6 +74,10 @@ void DetectLEDStripControllers(std::vector<RGBController*> &rgb_controllers)
{
dev.protocol = LED_PROTOCOL_TPM2;
}
else if(protocol_string == "basic_i2c")
{
dev.protocol = LED_PROTOCOL_BASIC_I2C;
}
}
std::string value = dev.port + "," + std::to_string(dev.baud) + "," + std::to_string(dev.num_leds);