figments: figment: redefine task startup state semantics
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#include "Chimes.h"
|
||||
#include "../Static.h"
|
||||
|
||||
ChimesAnimation::ChimesAnimation() : Figment("Chimes", Task::Stopped) {
|
||||
ChimesAnimation::ChimesAnimation() : Figment("Chimes") {
|
||||
}
|
||||
|
||||
void ChimesAnimation::randomize() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "Drain.h"
|
||||
#include "../Static.h"
|
||||
|
||||
DrainAnimation::DrainAnimation() : Figment("Drain", Task::Stopped) {}
|
||||
DrainAnimation::DrainAnimation() : Figment("Drain") {}
|
||||
|
||||
void DrainAnimation::loop() {
|
||||
EVERY_N_MILLISECONDS(8) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "Flashlight.h"
|
||||
#include "../Static.h"
|
||||
|
||||
Flashlight::Flashlight() : Figment("Flashlight", Task::Stopped) {
|
||||
Flashlight::Flashlight() : Figment("Flashlight") {
|
||||
m_blobs.forEach([](Blob &blob) {
|
||||
blob.setHue(random(255));
|
||||
blob.setSaturation(10);
|
||||
|
@ -4,7 +4,7 @@
|
||||
template<uint8_t MaxBrightness = 255, uint32_t MaxMilliAmps = 500, uint32_t Voltage = 5>
|
||||
class Power: public Figment {
|
||||
public:
|
||||
Power() : Figment("Power") {}
|
||||
Power() : Figment("Power") {state = Task::Running;}
|
||||
|
||||
void handleEvent(const InputEvent& evt) override {
|
||||
switch (evt.intent) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "SolidAnimation.h"
|
||||
#include "../Static.h"
|
||||
|
||||
SolidAnimation::SolidAnimation() : Figment("Solid", Task::Stopped) {
|
||||
SolidAnimation::SolidAnimation() : Figment("Solid") {
|
||||
}
|
||||
|
||||
void SolidAnimation::randomize() {
|
||||
|
Reference in New Issue
Block a user