Interval einstellbar

This commit is contained in:
starcalc 2019-03-17 18:19:54 +01:00
parent 00ba45d72d
commit d56ed90020
2 changed files with 6 additions and 1 deletions

View File

@ -93,6 +93,11 @@ void NeoPatterns::Update() {
} }
} }
void NeoPatterns::setInterval(uint8_t interval)
{
Interval = interval;
}
void NeoPatterns::Increment() void NeoPatterns::Increment()
{ {
// OnDebugOutput(String(Index) + " / " + String(TotalSteps)); // OnDebugOutput(String(Index) + " / " + String(TotalSteps));

View File

@ -82,7 +82,7 @@ class NeoPatterns : public Adafruit_NeoPixel
uint8_t numToPos(int num); uint8_t numToPos(int num);
uint8_t getAverage(uint8_t array[], uint8_t i, int x, int y); uint8_t getAverage(uint8_t array[], uint8_t i, int x, int y);
uint32_t parseColor(String value); uint32_t parseColor(String value);
void setInterval(uint8_t interval);
#define EXPLOSION_SIZE_MIN 5 #define EXPLOSION_SIZE_MIN 5
#define EXPLOSION_SIZE_MAX 10 #define EXPLOSION_SIZE_MAX 10