esp32-sk6812/include/UDPProto.h

25 lines
330 B
C
Raw Normal View History

#pragma once
#include <WiFiUdp.h>
class Fader;
class UDPProto
{
public:
enum {
SET_COLOUR = 0,
FADE_COLOUR = 1,
ADD_COLOUR = 2,
SET_FADESTEP = 3
};
UDPProto(Fader *fader);
bool start(uint16_t port);
bool loop(void);
private:
WiFiUDP m_udpServer;
Fader *m_fader;
};