Skip to content

Commit fe7fb6c

Browse files
authored
Merge pull request #4092 from Aircoookie/sm16825
SM16825 support
2 parents cec67d8 + ea80c1e commit fe7fb6c

File tree

4 files changed

+97
-14
lines changed

4 files changed

+97
-14
lines changed

wled00/bus_manager.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Bus {
157157
static bool hasWhite(uint8_t type) {
158158
if ((type >= TYPE_WS2812_1CH && type <= TYPE_WS2812_WWA) ||
159159
type == TYPE_SK6812_RGBW || type == TYPE_TM1814 || type == TYPE_UCS8904 ||
160-
type == TYPE_FW1906 || type == TYPE_WS2805) return true; // digital types with white channel
160+
type == TYPE_FW1906 || type == TYPE_WS2805 || type == TYPE_SM16825) return true; // digital types with white channel
161161
if (type > TYPE_ONOFF && type <= TYPE_ANALOG_5CH && type != TYPE_ANALOG_3CH) return true; // analog types with white channel
162162
if (type == TYPE_NET_DDP_RGBW || type == TYPE_NET_ARTNET_RGBW) return true; // network types with white channel
163163
return false;
@@ -166,7 +166,8 @@ class Bus {
166166
static bool hasCCT(uint8_t type) {
167167
if (type == TYPE_WS2812_2CH_X3 || type == TYPE_WS2812_WWA ||
168168
type == TYPE_ANALOG_2CH || type == TYPE_ANALOG_5CH ||
169-
type == TYPE_FW1906 || type == TYPE_WS2805 ) return true;
169+
type == TYPE_FW1906 || type == TYPE_WS2805 ||
170+
type == TYPE_SM16825) return true;
170171
return false;
171172
}
172173
static inline int16_t getCCT() { return _cct; }

0 commit comments

Comments
 (0)