musicmouse/espmusicmouse/lib/ledtl/drivers/Esp32DriverRGBW.h

20 lines
364 B
C
Raw Normal View History

2021-11-16 22:04:22 +01:00
#pragma once
#include "containers/LedStripRGBW.h"
class Esp32DriverRGBW
{
public:
void begin(int gpio, int rmtChannel);
void end();
void writeSync(const uint32_t *rgbwData, int numLeds);
void writeAsync(const uint32_t *rgbwData, int numLeds);
bool waitForTransmissionToFinish(int waitMs = 1000);
private:
int rmtChannel_;
bool transmitting_;
};