39 virtual void advance(uint8_t prevPin, uint8_t nextPin);
41 {
return _pins[(_currentIndex + _numPins - n) % _numPins]; }
47 unsigned long _advanceTime;
48 unsigned long _lastChange;
unsigned long advanceTime() const
Returns the number of milliseconds that each LED will be lit in the chase sequence.
virtual void advance(uint8_t prevPin, uint8_t nextPin)
Advances to the next LED in sequence, turning off prevPin, and turning on nextPin.
uint8_t previousPin(int n) const
Returns the pin that is n steps back in the sequence.
Chase LED's on output pins in a defined sequence.
ChaseLEDs(const uint8_t *pins, int num, unsigned long advanceTime)
Initializes the LED chaser.
void setAdvanceTime(unsigned long advanceTime)
Sets the number of milliseconds to advance between LED's to advanceTime.