Moved all individual effects into a subfolder {src,include}/effects/
This commit is contained in:
13
src/effects/static.cpp
Normal file
13
src/effects/static.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "effects/static.h"
|
||||
#include "functions.h"
|
||||
#include "my_fastled.h"
|
||||
|
||||
StaticEffect::StaticEffect(CRGB col) {
|
||||
color = col;
|
||||
}
|
||||
|
||||
void StaticEffect::loop(uint16_t ms) {
|
||||
EVERY_N_SECONDS(1) {
|
||||
window->clear(&color);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user