-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variations.go
37 lines (28 loc) · 1.59 KB
/
variations.go
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
package lcd
func New0802(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(8, 2, fontSize, registerSelect, enable, readWrite, data...)
}
func New1202(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(12, 2, fontSize, registerSelect, enable, readWrite, data...)
}
func New1601(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(16, 1, fontSize, registerSelect, enable, readWrite, data...)
}
func New1602(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(16, 2, fontSize, registerSelect, enable, readWrite, data...)
}
func New1604(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(16, 4, fontSize, registerSelect, enable, readWrite, data...)
}
func New2001(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(20, 1, fontSize, registerSelect, enable, readWrite, data...)
}
func New2002(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(20, 2, fontSize, registerSelect, enable, readWrite, data...)
}
func New2004(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(20, 4, fontSize, registerSelect, enable, readWrite, data...)
}
func New4002(fontSize FontSize, registerSelect, enable Pin, readWrite Pin, data ...Pin) (*LCD, error) {
return New(40, 2, fontSize, registerSelect, enable, readWrite, data...)
}