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

Method showPixels

tests/fl/active_strip_data_json.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 void init() override {}
41
42 void showPixels(PixelController<RGB>& pixels) override {
43 fl::ActiveStripData& data = fl::ActiveStripData::Instance();
44
45 // Create RGB buffer from pixels
46 fl::vector<uint8_t> rgbBuffer;
47 auto iterator = pixels.as_iterator(RgbwInvalid());
48 iterator.writeWS2812(&rgbBuffer);
49
50 data.update(mStripId, 1000, rgbBuffer);
51 }
52
53 uint16_t getMaxRefreshRate() const override { return 60; }
54 };

Callers

nothing calls this directly

Calls 3

RgbwInvalidClass · 0.85
writeWS2812Method · 0.80
updateMethod · 0.45

Tested by

no test coverage detected