|
@@ -5,10 +5,11 @@
|
|
|
*/
|
|
*/
|
|
|
const MiLightRemoteConfig* MiLightRemoteConfig::ALL_REMOTES[] = {
|
|
const MiLightRemoteConfig* MiLightRemoteConfig::ALL_REMOTES[] = {
|
|
|
&FUT096Config, // rgbw
|
|
&FUT096Config, // rgbw
|
|
|
- &FUT091Config, // cct
|
|
|
|
|
|
|
+ &FUT007Config, // cct
|
|
|
&FUT092Config, // rgb+cct
|
|
&FUT092Config, // rgb+cct
|
|
|
&FUT098Config, // rgb
|
|
&FUT098Config, // rgb
|
|
|
- &FUT089Config // 8-group rgb+cct (b8, fut089)
|
|
|
|
|
|
|
+ &FUT089Config, // 8-group rgb+cct (b8, fut089)
|
|
|
|
|
+ &FUT091Config
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
|
|
const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
|
|
@@ -16,8 +17,8 @@ const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
|
|
|
return &FUT096Config;
|
|
return &FUT096Config;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (type.equalsIgnoreCase("cct") || type.equalsIgnoreCase("fut091")) {
|
|
|
|
|
- return &FUT091Config;
|
|
|
|
|
|
|
+ if (type.equalsIgnoreCase("cct") || type.equalsIgnoreCase("fut007")) {
|
|
|
|
|
+ return &FUT007Config;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (type.equalsIgnoreCase("rgb_cct") || type.equalsIgnoreCase("fut092")) {
|
|
if (type.equalsIgnoreCase("rgb_cct") || type.equalsIgnoreCase("fut092")) {
|
|
@@ -32,6 +33,10 @@ const MiLightRemoteConfig* MiLightRemoteConfig::fromType(const String& type) {
|
|
|
return &FUT098Config;
|
|
return &FUT098Config;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (type.equalsIgnoreCase("v2_cct") || type.equalsIgnoreCase("fut091")) {
|
|
|
|
|
+ return &FUT091Config;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
Serial.print(F("MiLightRemoteConfig::fromType: ERROR - tried to fetch remote config for type: "));
|
|
Serial.print(F("MiLightRemoteConfig::fromType: ERROR - tried to fetch remote config for type: "));
|
|
|
Serial.println(type);
|
|
Serial.println(type);
|
|
|
|
|
|
|
@@ -77,7 +82,7 @@ const MiLightRemoteConfig FUT096Config( //rgbw
|
|
|
4
|
|
4
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
-const MiLightRemoteConfig FUT091Config( //cct
|
|
|
|
|
|
|
+const MiLightRemoteConfig FUT007Config( //cct
|
|
|
new CctPacketFormatter(),
|
|
new CctPacketFormatter(),
|
|
|
MiLightRadioConfig::ALL_CONFIGS[1],
|
|
MiLightRadioConfig::ALL_CONFIGS[1],
|
|
|
REMOTE_TYPE_CCT,
|
|
REMOTE_TYPE_CCT,
|
|
@@ -85,6 +90,14 @@ const MiLightRemoteConfig FUT091Config( //cct
|
|
|
4
|
|
4
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+const MiLightRemoteConfig FUT091Config( //v2 cct
|
|
|
|
|
+ new FUT091PacketFormatter(),
|
|
|
|
|
+ MiLightRadioConfig::ALL_CONFIGS[2],
|
|
|
|
|
+ REMOTE_TYPE_FUT091,
|
|
|
|
|
+ "fut091",
|
|
|
|
|
+ 4
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
const MiLightRemoteConfig FUT092Config( //rgb+cct
|
|
const MiLightRemoteConfig FUT092Config( //rgb+cct
|
|
|
new RgbCctPacketFormatter(),
|
|
new RgbCctPacketFormatter(),
|
|
|
MiLightRadioConfig::ALL_CONFIGS[2],
|
|
MiLightRadioConfig::ALL_CONFIGS[2],
|