Effekte in einer Datei versammelt; Animation hinzugefügt.
This commit is contained in:
13
pitrix.ino
13
pitrix.ino
@ -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}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user