FastLED 3.9.15
Loading...
Searching...
No Matches

◆ has()

template<EOrder RGB_ORDER, int LANES = 1, fl::u32 MASK = 0xFFFFFFFF>
FASTLED_FORCE_INLINE bool PixelController< RGB_ORDER, LANES, MASK >::has ( int n)
inline

Do we have n pixels left to process?

Parameters
nthe number to check against
Returns
'true' if there are more than n pixels left to process

Definition at line 368 of file pixel_controller.h.

368 {
369 return mLenRemaining >= n;
370 }
int mLenRemaining
counter for the number of LEDs left to process
Pixel controller class.

References FASTLED_FORCE_INLINE, and mLenRemaining.

Referenced by DMXSerialController< RGB_ORDER >::showPixels(), DMXSimpleController< DATA_PIN, RGB_ORDER >::showPixels(), HD108Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::showPixels(), LPD6803Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::showPixels(), P9813Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::showPixels(), RGBWEmulatedController< CONTROLLER, RGB_ORDER >::showPixels(), and APA102Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED, GAMMA_CORRECTION_MODE, START_FRAME, END_FRAME >::showPixelsDefault().

+ Here is the caller graph for this function: