HoloCubic/2.Firmware/HoloCubic_fw/rgb_led.h
2021-02-28 23:55:03 +08:00

22 lines
269 B
C++

#ifndef RGB_H
#define RGB_H
#include <FastLED.h>
#define RGB_LED_NUM 2
#define RGB_LED_PIN 27
class Pixel
{
private:
CRGB color_buffers[RGB_LED_NUM];
public:
void init();
Pixel& setRGB(int id, int r, int g, int b);
Pixel& setBrightness(float duty);
};
#endif