11 lines
220 B
C++
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()
|
|
{
|
|
} |