Skip to content

Commit ee5a70a

Browse files
committed
Update: getNumberOfPins to load all pins from config for hub75
1 parent deac504 commit ee5a70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/bus_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)