MCPcopy Create free account
hub / github.com/FastLED/FastLED / readPixel

Method readPixel

src/fl/video/pixel_stream.cpp.hpp:95–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93i32 PixelStream::bytesPerFrame() { return mbytesPerFrame; }
94
95bool PixelStream::readPixel(CRGB *dst) {
96 return mHandle->read(&dst->r, 1) && mHandle->read(&dst->g, 1) &&
97 mHandle->read(&dst->b, 1);
98}
99
100bool PixelStream::available() const {
101 if (mType == kStreaming) {

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

readMethod · 0.45

Tested by 1

FL_TEST_FILEFunction · 0.64