G.U.L.L.S. rebuilt to use PlatformIO
This commit is contained in:
18
src/CycleLightStrip.cpp
Normal file
18
src/CycleLightStrip.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "CycleLightStrip.h"
|
||||
|
||||
void CycleLightStrip::execute() {
|
||||
if(cycleLightInt == 0) {
|
||||
strip->clearLEDs();
|
||||
}
|
||||
|
||||
strip->setColor(cycleLightInt, colors[cycleLightColor % numColors]);
|
||||
|
||||
cycleLightInt++;
|
||||
|
||||
if(cycleLightInt >= strip->getNumLEDs()) {
|
||||
cycleLightInt = 0;
|
||||
cycleLightColor++;
|
||||
}
|
||||
|
||||
strip->requestShow();
|
||||
}
|
||||
Reference in New Issue
Block a user