-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ts
executable file
·102 lines (96 loc) · 1.47 KB
/
test.ts
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// tests go here; this will not be compiled when this package is used as a library
LCD1IN8.LCD_Init()
LCD1IN8.LCD_SetBL(10)
LCD1IN8.LCD_Filling(LCD_COLOR.RED)
LCD1IN8.LCD_Clear()
LCD1IN8.DrawLine(
1,
1,
160,
1,
LCD1IN8.Get_Color(LCD_COLOR.BLUE),
DOT_PIXEL.DOT_PIXEL_2,
LINE_STYLE.LINE_SOLID
)
LCD1IN8.DrawLine(
1,
7,
160,
7,
LCD1IN8.Get_Color(LCD_COLOR.RED),
DOT_PIXEL.DOT_PIXEL_1,
LINE_STYLE.LINE_DOTTED
)
LCD1IN8.DrawLine(
1,
1,
160,
1,
LCD1IN8.Get_Color(LCD_COLOR.BLUE),
DOT_PIXEL.DOT_PIXEL_2,
LINE_STYLE.LINE_SOLID
)
LCD1IN8.DrawRectangle(
5,
10,
155,
60,
LCD1IN8.Get_Color(LCD_COLOR.GBLUE),
DRAW_FILL.DRAW_EMPTY,
DOT_PIXEL.DOT_PIXEL_1
)
LCD1IN8.DrawRectangle(
10,
15,
150,
30,
LCD1IN8.Get_Color(LCD_COLOR.MAGENTA),
DRAW_FILL.DRAW_FULL,
DOT_PIXEL.DOT_PIXEL_1
)
LCD1IN8.DrawCircle(
30,
45,
10,
LCD1IN8.Get_Color(LCD_COLOR.GREEN),
DRAW_FILL.DRAW_EMPTY,
DOT_PIXEL.DOT_PIXEL_1
)
LCD1IN8.DrawCircle(
60,
45,
10,
LCD1IN8.Get_Color(LCD_COLOR.BLUE),
DRAW_FILL.DRAW_FULL,
DOT_PIXEL.DOT_PIXEL_1
)
LCD1IN8.DisString(
6,
65,
"Waveshare electronics",
LCD1IN8.Get_Color(LCD_COLOR.BLUE)
)
LCD1IN8.DisString(
0,
75,
"1.8inch LCD for micro:bit 160*128 pixel,262K Color,ST7735S controller,RAM 23LC1024",
LCD1IN8.Get_Color(LCD_COLOR.RED)
)
LCD1IN8.LCD_Display()
LCD1IN8.LCD_Clear()
LCD1IN8.DrawRectangle(
10,
30,
80,
60,
LCD1IN8.Get_Color(LCD_COLOR.BLUE),
DRAW_FILL.DRAW_FULL,
DOT_PIXEL.DOT_PIXEL_1
)
LCD1IN8.DisNumber(
90,
40,
32105,
LCD1IN8.Get_Color(LCD_COLOR.BLUE)
)
LCD1IN8.LCD_DisplayWindows(10,30,160,60)