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
7namespace fl {
8
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
StrStream & operator<<(const CRGB &rgb)
Definition strstream.h:52
StrStream()=default
rect< int > bounds() const
Definition tile2x2.h:64
uint8_t & at(int x, int y)
Definition tile2x2.h:35
Defines the red, green, and blue (RGB) pixel struct.
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16