-
Notifications
You must be signed in to change notification settings - Fork 8
/
Display.h
62 lines (56 loc) · 1.33 KB
/
Display.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
57
58
59
60
61
62
//#define DISP M5.Lcd
//DISP.height()
//DISP.width()
//uint16_t displayBuffer[SCREEN_WIDTH][SCREEN_HEIGHT];
void setTextSize(uint8_t TXT_size)
{
DISP.setTextSize(TXT_size);
//Serial.printf("setTextSiz");
//Serial.write(TXT_size);
}
void fillScreen(uint16_t Backgroud)
{
DISP.fillScreen(Backgroud);
//Serial.printf("fillScreen");
//Serial.write(Backgroud&0xff00);
//Serial.write(Backgroud&0x00ff);
}
void setCursor(uint8_t x, uint8_t y, uint8_t fond)
{
DISP.setCursor(x, y, fond);
//Serial.write(0xff);
//Serial.printf("setCursor_");
//Serial.write(x);
//Serial.write(y);
//Serial.printf("print-_-_-");
//Serial.print("Hallo");
//Serial.write(0x00);
}
void setTextColor(uint16_t BGpCOLOR, uint16_t FGpCOLOR)
{
DISP.setTextColor(BGpCOLOR, FGpCOLOR);
//Serial.write(0xff);
//Serial.printf("setTextCol");
//Serial.write(BGpCOLOR&0xff00);
//Serial.write(BGpCOLOR&0x00ff);
//Serial.write(FGpCOLOR&0xff00);
//Serial.write(FGpCOLOR&0x00ff);
}
void printf(const char *arg, char* Text)
{
DISP.printf(arg, Text);
//Serial.write(0xff);
//Serial.printf("printf_-_-");
//Serial.write(arg);
//Serial.write(0x00);
//Serial.write(Text);
//Serial.write(0x00);
}
void print(String tEXT)
{
DISP.print(tEXT);
//Serial.write(0xff);
//Serial.printf("print-_-_-");
//Serial.print(tEXT);
//Serial.write(0x00);
}//