FastLED
3.9.15
Loading...
Searching...
No Matches
◆
operator()()
template<class PIXEL_TYPE>
CPixelView
CPixelView
< PIXEL_TYPE >::operator()
(
int
start
,
int
end
)
inline
Access an inclusive subset of the LEDs in this set.
Note
The start point can be greater than end, which will result in a reverse ordering for many functions (useful for mirroring).
Parameters
start
the first element from this set for the new subset
end
the last element for the new subset
Definition at line
106
of file
pixelset.h
.
106
{
if
(
dir
& 0x80) {
return
CPixelView
(
leds
+
len
+1, -
len
-
start
-1, -
len
-
end
-1); }
else
{
return
CPixelView
(
leds
,
start
,
end
); } }
CPixelView::leds
PIXEL_TYPE *const leds
pointer to the LED data
Definition
pixelset.h:64
CPixelView::end
iterator end()
Makes an iterator instance for the end of the LED set.
Definition
pixelset.h:433
CPixelView::dir
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition
pixelset.h:61
CPixelView::len
const int len
length of the LED data, in PIXEL_TYPE units.
Definition
pixelset.h:62
CPixelView::CPixelView
CPixelView(const CPixelView &other)
PixelSet copy constructor.
Definition
pixelset.h:69
CPixelView
Represents a set of LED objects.
Definition
pixelset.h:59
CPixelView
Generated on Thu May 29 2025 04:44:58 for FastLED by
1.13.2