started working on OTA but downloading files is not functional yet
This commit is contained in:
@@ -67,17 +67,30 @@ class prgm_ledstrip
|
||||
|
||||
struct pixel
|
||||
{
|
||||
uint32_t index;
|
||||
uint8_t red;
|
||||
uint8_t green;
|
||||
uint8_t blue;
|
||||
uint32_t index;
|
||||
union
|
||||
{
|
||||
struct
|
||||
{
|
||||
uint8_t red;
|
||||
uint8_t green;
|
||||
uint8_t blue;
|
||||
} rgb;
|
||||
struct
|
||||
{
|
||||
uint16_t hue;
|
||||
uint8_t saturation;
|
||||
uint8_t value;
|
||||
} hsv;
|
||||
};
|
||||
};
|
||||
|
||||
// Class Constructor
|
||||
prgm_ledstrip(uint32_t numberOfLEDs, uint32_t gpio);
|
||||
|
||||
// Set and clear functions only update the pixel value(s) locally but do not push the values to the strip
|
||||
FunctionStatus setPixel(struct pixel& pixel);
|
||||
FunctionStatus setPixelRGB(struct pixel& pixel);
|
||||
FunctionStatus setPixelHSV(struct pixel& pixel);
|
||||
FunctionStatus clearAll(void);
|
||||
|
||||
// Clears all pixels locally and automatically pushes the values to the strip
|
||||
|
||||
Reference in New Issue
Block a user