@ -24,6 +24,13 @@ class LEDChaseEffect : public LEDMode {
public :
public :
LEDChaseEffect ( void ) { }
LEDChaseEffect ( void ) { }
uint16_t update_delay ( ) {
return update_delay_ ;
}
void update_delay ( uint16_t delay ) {
update_delay_ = delay ;
}
protected :
protected :
void update ( void ) final ;
void update ( void ) final ;
@ -31,8 +38,8 @@ class LEDChaseEffect : public LEDMode {
int8_t pos = 0 ;
int8_t pos = 0 ;
int8_t chase_sign = 1 ; //negative values when it's going backwar
int8_t chase_sign = 1 ; //negative values when it's going backwar
uint8_t chase_pixels = 5 ;
uint8_t chase_pixels = 5 ;
uint 8_t current_chase_counter = 0;
uint 16_t update_delay_ = 15 0;
static const uint8_t chase_threshold = 15 0;
uint16_t last_update_ = 0;
} ;
} ;
}
}
}
}