Convenience: read RGB8 pixels (3 bytes per pixel)
| 180 | |
| 181 | // Convenience: read RGB8 pixels (3 bytes per pixel) |
| 182 | fl::size_t readRGB8(fl::span<CRGB> dst) { |
| 183 | read(fl::reinterpret_cast_<char*>(dst.data()), dst.size() * 3); |
| 184 | return mLastRead / 3; |
| 185 | } |
| 186 | |
| 187 | // Backward-compat aliases |
| 188 | bool valid() const { return is_open(); } |
no test coverage detected