File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class Bus {
165165 inline bool containsPixel (uint16_t pix) const { return pix >= _start && pix < _start + _len; }
166166
167167 static inline std::vector<LEDType> getLEDTypes () { return {{TYPE_NONE, " " , PSTR (" None" )}}; } // not used. just for reference for derived classes
168- static constexpr size_t getNumberOfPins (uint8_t type) { return isVirtual (type) ? 4 : isPWM (type) ? numPWMPins (type) : is2Pin (type) + 1 ; } // credit @PaoloTK
168+ static constexpr size_t getNumberOfPins (uint8_t type) { return isVirtual (type) ? 4 : isPWM (type) ? numPWMPins (type) : isHub75 (type) ? 3 : is2Pin (type) + 1 ; } // credit @PaoloTK
169169 static constexpr size_t getNumberOfChannels (uint8_t type) { return hasWhite (type) + 3 *hasRGB (type) + hasCCT (type); }
170170 static constexpr bool hasRGB (uint8_t type) {
171171 return !((type >= TYPE_WS2812_1CH && type <= TYPE_WS2812_WWA) || type == TYPE_ANALOG_1CH || type == TYPE_ANALOG_2CH || type == TYPE_ONOFF);
You can’t perform that action at this time.
0 commit comments