FastLED
3.9.15
Loading...
Searching...
No Matches
fx1d.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/stdint.h
"
4
5
#include "
fl/int.h
"
6
#include "
fl/namespace.h
"
7
#include "
fl/xmap.h
"
8
#include "
fx/fx.h
"
9
10
namespace
fl
{
11
12
// Abstract base class for 1D effects that use a strip of LEDs.
13
class
Fx1d
:
public
Fx
{
14
public
:
15
Fx1d
(u16 numLeds) :
Fx
(numLeds),
mXMap
(numLeds, false) {}
16
void
setXmap
(
const
XMap
&xMap) {
mXMap
= xMap; }
17
18
u16
xyMap
(u16
x
)
const
{
return
mXMap
.mapToIndex(
x
); }
19
20
protected
:
21
XMap
mXMap
;
22
};
23
24
}
// namespace fl
x
int x
Definition
simple.h:92
fl::Fx1d::xyMap
u16 xyMap(u16 x) const
Definition
fx1d.h:18
fl::Fx1d::setXmap
void setXmap(const XMap &xMap)
Definition
fx1d.h:16
fl::Fx1d::Fx1d
Fx1d(u16 numLeds)
Definition
fx1d.h:15
fl::Fx1d::mXMap
XMap mXMap
Definition
fx1d.h:21
fl::Fx::Fx
Fx(uint16_t numLeds)
Definition
fx.h:23
fl::XMap
Definition
xmap.h:28
fx.h
int.h
namespace.h
Implements the FastLED namespace macros.
fl
IMPORTANT!
Definition
crgb.h:20
stdint.h
xmap.h
fx
fx1d.h
Generated on Fri Aug 22 2025 20:59:33 for FastLED by
1.13.2