Added effect marquee, which will scroll a given message through the display.

This commit is contained in:
2019-09-25 06:41:52 +02:00
parent 73b8d162c7
commit 781954d7f1
3 changed files with 46 additions and 0 deletions

18
include/effect_marquee.h Normal file
View File

@ -0,0 +1,18 @@
#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();
void apply_option(String key, String value) override;
};