Effekte in einer Datei versammelt; Animation hinzugefügt.

This commit is contained in:
2019-05-22 06:52:41 +02:00
parent a88f7b5ec2
commit 24f6c7e798
11 changed files with 269 additions and 196 deletions

View File

@ -12,15 +12,12 @@ WiFiClient wifi;
WiFiUDP ntpUDP;
NTPClient ntpClient(ntpUDP, NTP_SERVER, NTP_OFFSET, NTP_INTERVAL);
#include "effect.h"
#include "tools.h"
#include "functions.h"
#include "text.h"
#include "sprites.h"
#include "effect_sinematrix3.h"
#include "effect_clock.h"
#include "effect_bell.h"
#include "effect_static.h"
#include "animations.h"
#include "tools.h"
#include "effects.h"
void setup() {
// put your setup code here, to run once:
@ -39,14 +36,16 @@ Clock effect_clock;
SmallClock effect_small_clock;
Bell effect_bell;
Static effect_off(CRGB(0x000000));
Animation effect_koopa(&koopa);
Effect* current_effect = &effect_small_clock;
#define NUM_EFFECTS 5
#define NUM_EFFECTS 6
EffectEntry effects[NUM_EFFECTS] = {
{"bell", &effect_bell},
{"sinematrix3", &effect_sinematrix3},
{"clock", &effect_clock},
{"small_clock", &effect_small_clock},
{"koopa", &effect_koopa},
{"off", &effect_off}
};