FastLED 3.9.15
Loading...
Searching...
No Matches
strstream.cpp
Go to the documentation of this file.
1#include "fl/strstream.h"
2#include "crgb.h"
3#include "fl/tile2x2.h"
4#include "fl/fft.h"
5#include "str.h"
6
7namespace fl {
8
9
11 mStr.append("Tile2x2_u8(");
12 mStr.append(subpixel.bounds());
13 mStr.append(" => ");
14 mStr.append(subpixel.at(0, 0));
15 mStr.append(",");
16 mStr.append(subpixel.at(0, 1));
17 mStr.append(",");
18 mStr.append(subpixel.at(1, 0));
19 mStr.append(",");
20 mStr.append(subpixel.at(1, 1));
21 mStr.append(")");
22 return *this;
23}
24
25// FFTBins support - show both raw and db bins
27 mStr.append("FFTBins(size=");
28 mStr.append(bins.size());
29 mStr.append(", raw=");
30 (*this) << bins.bins_raw;
31 mStr.append(", db=");
32 (*this) << bins.bins_db;
33 mStr.append(")");
34 return *this;
35}
36
37// Tile2x2_u8_wrap support - delegates to fl::string::append which already knows how to format it
39 mStr.append(tile);
40 return *this;
41}
42
43} // namespace fl
StrStream & operator<<(const CRGB &rgb)
Definition strstream.h:54
StrStream()=default
u8 & at(int x, int y)
Definition tile2x2.h:39
rect< u16 > bounds() const
bounds => [begin_x, end_x) (where end_x is exclusive)
Definition tile2x2.cpp:121
Defines the red, green, and blue (RGB) pixel struct.
IMPORTANT!
Definition crgb.h:20
fl::vector< float > bins_raw
Definition fft.h:53
fl::size size() const
Definition fft.h:50
fl::vector< float > bins_db
Definition fft.h:55