FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Cylon Class Reference

Detailed Description

An animation that moves a single LED back and forth (Larson Scanner effect)

Examples
FxCylon.ino.

Definition at line 13 of file cylon.h.

#include <cylon.h>

+ Inheritance diagram for fl::Cylon:
+ Collaboration diagram for fl::Cylon:

Public Member Functions

 Cylon (uint16_t num_leds, uint8_t fade_amount=250, uint8_t delay_ms=10)
 
void draw (DrawContext context) override
 
fl::string fxName () const override
 
- Public Member Functions inherited from fl::Fx1d
 Fx1d (u16 numLeds)
 
void setXmap (const XMap &xMap)
 
u16 xyMap (u16 x) const
 
- Public Member Functions inherited from fl::Fx
 Fx (uint16_t numLeds)
 
uint16_t getNumLeds () const
 
virtual bool hasFixedFrameRate (float *fps) const
 
virtual void pause (fl::u32 now)
 
virtual void resume (fl::u32 now)
 

Public Attributes

uint8_t delay_ms
 

Private Attributes

uint8_t fade_amount
 
uint8_t hue = 0
 
int16_t position = 0
 
bool reverse = false
 

Additional Inherited Members

- Public Types inherited from fl::Fx
using DrawContext = _DrawContext
 
- Protected Member Functions inherited from fl::Fx
virtual ~Fx ()
 
- Protected Attributes inherited from fl::Fx1d
XMap mXMap
 
- Protected Attributes inherited from fl::Fx
uint16_t mNumLeds
 

The documentation for this class was generated from the following file: