Update drv_bp1658cj.c

This commit is contained in:
openshwprojects
2023-03-05 07:18:25 +01:00
committed by GitHub
parent 51945884c2
commit d5f79f1700

View File

@@ -43,6 +43,9 @@ void BP1658CJ_Write(float *rgbcw) {
Soft_I2C_Start(&g_softI2C, BP1658CJ_ADDR_OUT);
// The First Byte is the Subadress
// OSHW update: no, it seems those are current values
// 4 bits for CW and 4 bits for RGB
// Our contributor was wrong
if (g_currentRGB == 00 && g_currentCW == 0) {
Soft_I2C_WriteByte(&g_softI2C, BP1658CJ_SUBADDR);
}