FastLED 3.10.8
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 282 of file pixel_controller.h.

282 {
283 return mLenRemaining >= n;
284 }
int mLenRemaining
counter for the number of LEDs left to process
Pixel controller class.

References FASTLED_FORCE_INLINE, FL_NO_EXCEPT, and mLenRemaining.

Referenced by DMXSerialController< RGB_ORDER >::showPixels(), and DMXSimpleController< DATA_PIN, RGB_ORDER >::showPixels().

+ Here is the caller graph for this function: