FastLED
3.9.7
Loading...
Searching...
No Matches
led_rope_interface.h
1
2
#ifndef LED_ROPE_INTERFACE_H_
3
#define LED_ROPE_INTERFACE_H_
4
5
#include "./color.h"
6
7
class
LedRopeInterface
{
8
public
:
9
virtual
~LedRopeInterface
() {}
10
virtual
void
Set(
int
i,
const
Color3i
& c) = 0;
11
12
virtual
void
Set(
int
i,
int
length,
const
Color3i
& color) {
13
for
(
int
j = 0; j < length; ++j) {
14
Set(i + j, color);
15
}
16
}
17
18
virtual
Color3i
* GetIterator(
int
i) = 0;
19
20
virtual
int
length()
const
= 0;
21
22
virtual
void
DrawSequentialRepeat(
int
repeat) = 0;
23
virtual
void
DrawRepeat(
const
int
* value_array,
int
array_length) = 0;
24
25
virtual
void
RawBeginDraw() = 0;
26
virtual
void
RawDrawPixel(
const
Color3i
& c) = 0;
27
virtual
void
RawDrawPixels(
const
Color3i
& c,
int
n) = 0;
28
virtual
void
RawDrawPixel(uint8_t r, uint8_t g, uint8_t b) = 0;
29
virtual
void
RawCommitDraw() = 0;
30
31
};
32
33
#endif
// LED_ROPE_INTERFACE_H_
LedRopeInterface
Definition
led_rope_interface.h:7
Color3i
Definition
color.h:8
examples
LuminescentGrand
shared
led_rope_interface.h
Generated on Fri Dec 20 2024 20:54:48 for FastLED by
1.11.0