aboutsummaryrefslogtreecommitdiff
path: root/main/DisplayText.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/DisplayText.h')
-rw-r--r--main/DisplayText.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/DisplayText.h b/main/DisplayText.h
new file mode 100644
index 0000000..57a739e
--- /dev/null
+++ b/main/DisplayText.h
@@ -0,0 +1,27 @@
+#ifndef DISPLAYTEXT_H
+#define DISPLAYTEXT_H
+
+#include <string>
+
+class DisplayText {
+ public:
+ DisplayText(std::string text, int16_t y, uint16_t color, int16_t alignment);
+
+ const char* getText();
+
+ int16_t getX();
+
+ int16_t getY();
+
+ uint16_t getColor();
+
+ void step();
+
+ private:
+ int16_t x, y, width;
+ uint16_t color;
+ bool scroll;
+ std::string text;
+};
+
+#endif