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

23 lines
396 B
C
Raw Normal View History

2021-11-16 22:04:22 +01:00
#pragma once
2021-11-19 17:22:09 +01:00
#ifndef PLATFORM_NATIVE
2021-11-16 22:04:22 +01:00
#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_;
};
2021-11-19 17:22:09 +01:00
#endif