forked from sdjngyq/MFDLCD18_H
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCD1in8.cpp
51 lines (40 loc) · 949 Bytes
/
LCD1in8.cpp
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
#include "pxt.h"
#include "LCD_Driver.h"
using namespace pxt;
//% weight=20 color=#436EEE icon="\uf108"
namespace LCD1IN8 {
LCD_Driver *LCD;
//%
void LCD_Init() {
LCD->LCD_Init();
}
//%
void LCD_Clear() {
LCD->LCD_Clear(WHITE);
LCD->LCD_ClearBuf();
}
//%
void LCD_Filling(int Color) {
LCD->LCD_Clear(Color);
}
//%
void LCD_Display() {
LCD->LCD_Display();
}
//%
void LCD_DisplayWindows(int Xstart, int Ystart, int Xend, int Yend) {
LCD->LCD_DisplayWindows(Xstart, Ystart, Xend, Yend);
}
//%
void LCD_SetBL(int Lev) {
LCD->LCD_SetBL(Lev);
}
//%
void DrawPoint(int x, int y, int Color, int Dot) {
LCD->LCD_DrawPoint(x, y, Color, Dot);
}
//%
void DisChar_1207(int Xchar, int Ychar, int Char_Offset, int Color){
LCD->LCD_DisChar_1207(Xchar, Ychar, Char_Offset, Color);
}
}