-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextRoller.h
56 lines (39 loc) · 1.09 KB
/
textRoller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef TEXT_ROLLER_H
#define TEXT_ROLLER_H
#include <Arduino.h>
#include <LinkedList.h>
#include "charImage.h"
#include "constant.h"
#include "ascii.h"
class TextRoller {
public:
int redValue;
int greenValue;
int blueValue;
int interval;
int verticalOffset;
int step;
String message;
bool isRandomColor;
int totalMessageCols;
int totalOffsetCols; // totalOffsetCol = totalMessageCols + totalMatrixCols
LinkedList<CharImage *> charImagesList;
public:
TextRoller();
void configTextRoller(String inStr);
// all seter
void setRedValue(int v);
void setGreenValue(int v);
void setBlueValue(int v);
void setInterval(int v);
void setVerticalOffset(int v);
void setTotalMessageCols(int v);
void setTotalOffsetCols(int v);
void setStep(int v);
// set message will call configTextRoller function to recalcualte all the paramters
void setMessage(String str);
// reset function free all the memory in the charImagesList,and set TotalOffsetCols, TotalOffsetCols tpo 0
void reset();
void print();
};
#endif