| 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 | }; |
nothing calls this directly
no test coverage detected