Files
weather-info/lib/LedMatrix/src/LedMatrix.cpp
2025-11-03 15:05:22 +01:00

11 lines
220 B
C++

#include "LedMatrix.h"
LedMatrix::LedMatrix(uint8_t h, uint8_t w)
: height(h), width(w), num_leds(h * w), leds(num_leds)
{
addLeds<WS2812B, MATRIX_PIN, RGB>(leds.data(), num_leds);
}
LedMatrix::~LedMatrix()
{
}