Commit Graph

13 Commits

Author SHA1 Message Date
Fabian Schlenz 083564caef Reorganized effect selection stuff: No longer a big case clause comparing CRC32. Instead an array of structs. Much nicer. Also, other code can now see which effects there are. 2019-10-02 06:16:07 +02:00
Fabian Schlenz 3f6d4cb0be Moved settings from preprocessor directives to variables. Also added a way to (for now only) display them via HTTP server. 2019-10-02 06:13:55 +02:00
Fabian Schlenz 382631d7d7 Effect#loop now gets the time since the last run of the loop in ms. This enables
the effects to show animations that stay fluid independent of the current frame rate.
2019-10-01 06:29:32 +02:00
Fabian Schlenz b0c1bcaa65 More logging for effect changes in cycle effect. 2019-09-25 18:13:39 +02:00
Fabian Schlenz 36edb94ff0 Metrics now include the current effect's name. 2019-09-25 18:11:03 +02:00
Fabian Schlenz 26df11fc47 Added tests. Start them by sending a message to MQTT_TOPIC/run_tests. First test will test all effects for memory leaks. 2019-06-19 22:26:38 +02:00
Fabian Schlenz 0941ad8349 Effects are now constructed when needed instead of having global objects of every effect flying around. 2019-06-18 18:14:59 +02:00
Fabian Schlenz c5856a6f7a Whitespace stuff. Tabs rule!
continuous-integration/drone/push Build is failing Details
2019-06-07 06:24:16 +02:00
Fabian Schlenz f7230b54a2 CycleEffect can now be configured to show the effects sequentially or randomly. 2019-06-05 06:28:21 +02:00
Fabian Schlenz 94687bab36 CycleEffect now uses the ID of an effect within cycle_effects to prevent repeating an effect instead of comparing the objects. 2019-06-04 05:56:33 +02:00
Fabian Schlenz 7fdc28fe48 Logging effect ID in CycleEffect. 2019-06-03 06:43:02 +02:00
Fabian Schlenz a7d956209a Added `Effect::start()` and `Effect::stop()` to allow effects to reserve memory on start and free it afterwards. 2019-05-31 05:46:17 +02:00
Fabian Schlenz 2f58fd14d0 Splitting the code into single files is done. \o/ 2019-05-30 00:49:54 +02:00