Kaleidoscope
Kaleidoscope-LEDEffect-Chase.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "LEDUtils.h"
5 
6 class LEDChaseEffect_ : public LEDMode {
7  public:
8  LEDChaseEffect_(void);
9 
10  void update(void) final;
11 
12  private:
13  uint8_t pos = 0;
14  int8_t chase_sign = 1; //negative values when it's going backwar
15  uint8_t chase_pixels = 5;
16  uint8_t current_chase_counter = 0;
17  static const uint8_t chase_threshold = 20;
18 };
19 
void update(void) final
Definition: Kaleidoscope-LEDEffect-Chase.cpp:6
Definition: Kaleidoscope-LEDEffect-Chase.h:6
Definition: Kaleidoscope-LEDControl.h:11
LEDChaseEffect_(void)
Definition: Kaleidoscope-LEDEffect-Chase.cpp:3
LEDChaseEffect_ LEDChaseEffect
Definition: Kaleidoscope-LEDEffect-Chase.cpp:22