FastLED
3.9.15
Loading...
Searching...
No Matches
strstream.cpp
Go to the documentation of this file.
1
2
#include "
fl/strstream.h
"
3
#include "
crgb.h
"
4
#include "
fl/tile2x2.h
"
5
#include "
str.h
"
6
7
namespace
fl
{
8
9
StrStream
&
StrStream::operator<<
(
const
Tile2x2_u8
&subpixel) {
10
mStr
.append(
"Tile2x2_u8("
);
11
mStr
.append(subpixel.
bounds
());
12
mStr
.append(
" => "
);
13
mStr
.append(subpixel.
at
(0, 0));
14
mStr
.append(
","
);
15
mStr
.append(subpixel.
at
(0, 1));
16
mStr
.append(
","
);
17
mStr
.append(subpixel.
at
(1, 0));
18
mStr
.append(
","
);
19
mStr
.append(subpixel.
at
(1, 1));
20
mStr
.append(
")"
);
21
return
*
this
;
22
}
23
24
}
// namespace fl
fl::StrStream::operator<<
StrStream & operator<<(const CRGB &rgb)
Definition
strstream.h:52
fl::StrStream::mStr
Str mStr
Definition
strstream.h:175
fl::StrStream::StrStream
StrStream()=default
fl::Tile2x2_u8::bounds
rect< int > bounds() const
Definition
tile2x2.h:64
fl::Tile2x2_u8::at
uint8_t & at(int x, int y)
Definition
tile2x2.h:35
fl::Tile2x2_u8
Definition
tile2x2.h:20
crgb.h
Defines the red, green, and blue (RGB) pixel struct.
fl
Implements a simple red square effect for 2D LED grids.
Definition
crgb.h:16
str.h
strstream.h
tile2x2.h
fl
strstream.cpp
Generated on Sat May 24 2025 22:44:23 for FastLED by
1.13.2