New primary constructor
| 79 | |
| 80 | // New primary constructor |
| 81 | Corkscrew::Corkscrew(float totalTurns, fl::u16 numLeds, bool invert, const Gap& gapParams) |
| 82 | : mTotalTurns(totalTurns), mNumLeds(numLeds), mGapParams(gapParams), mInvert(invert) { |
| 83 | fl::calculateDimensions(mTotalTurns, mNumLeds, mGapParams, &mWidth, &mHeight); |
| 84 | mOwnsPixels = false; |
| 85 | } |
| 86 | |
| 87 | // Constructor with external pixel buffer |
| 88 | Corkscrew::Corkscrew(float totalTurns, fl::span<CRGB> dstPixels, bool invert, const Gap& gapParams) |
nothing calls this directly
no test coverage detected