pitrix/include/effect_marquee.h
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

20 lines
502 B
C++

#pragma once
#include "prototypes.h"
#include "functions.h"
#include "Effect.h"
class MarqueeEffect : public Effect {
private:
Window* window = new Window(0, 0, LED_WIDTH, LED_HEIGHT-6);
String _text = String("No text set +++ ");
saccum78 _position = (window->width<<8);
public:
boolean supports_window = true;
boolean can_be_shown_with_clock();
void loop(uint16_t ms);
void apply_option(String key, String value) override;
String get_name() override { return "marquee"; }
};