-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathGLCDTextBox.h
More file actions
52 lines (40 loc) · 945 Bytes
/
GLCDTextBox.h
File metadata and controls
52 lines (40 loc) · 945 Bytes
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
/*
Project: 1Sheeld Library
File: GLCDTextBox.h
Version: 7.0
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2015.7
*/
#ifndef GLCDTextBox_h
#define GLCDTextBox_h
#define GLCD_TEXTBOX_TYPE 0x05
#define GLCD_TEXTBOX_SET_FONT 0x03
#define GLCD_TEXTBOX_SET_SIZE 0x04
#define GLCD_TEXTBOX_TEXT 0x05
/* Fonts Literals. */
#define ARIAL 0x00
#define ARIAL_BOLD 0x01
#define ARIAL_ITALIC 0x02
#define COMIC_SANS 0x03
#define SERIF 0x04
/* Size Literals. */
#define SMALL 0x00
#define MEDIUM 0x01
#define LARGE 0x02
#include "ShapeClass.h"
class GLCDTextBox : public ShapeClass
{
public:
GLCDTextBox(int , int ,char * );
void setFont(byte );
void setSize(byte );
void setText(char *);
~GLCDTextBox();
private:
int dataStringLength;
bool dataMalloced;
char * dataString;
void draw();
};
#endif