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

Method showPixels

src/chipsets.h:129–142  ·  view source on GitHub ↗

@copydoc CPixelLEDController::showPixels()

Source from the content-addressed store, hash-verified

127
128 /// @copydoc CPixelLEDController::showPixels()
129 virtual void showPixels(PixelController<RGB_ORDER> & pixels) {
130 mWait.wait();
131 while(pixels.has(1)) {
132 fl::u8 r = pixels.loadAndScale0();
133 Serial.write(r);
134 fl::u8 g = pixels.loadAndScale1();
135 Serial.write(g);
136 fl::u8 b = pixels.loadAndScale2();
137 Serial.write(b);
138 pixels.advanceData();
139 pixels.stepDithering();
140 }
141 mWait.mark();
142 }
143
144};
145

Callers

nothing calls this directly

Calls 6

markMethod · 0.80
waitMethod · 0.45
hasMethod · 0.45
writeMethod · 0.45
advanceDataMethod · 0.45
stepDitheringMethod · 0.45

Tested by

no test coverage detected