-
Notifications
You must be signed in to change notification settings - Fork 15
/
test.sh
73 lines (65 loc) · 997 Bytes
/
test.sh
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
#!/bin/bash
./oled r
./oled +1 "ABCDEFG"
./oled +2 "abcdefg"
./oled +3 "1234567"
./oled +4 "Hello World!!"
sudo ./oled s
echo -n "push Enter"
read input
./oled +R 1
./oled +U 3
sudo ./oled s
echo -n "push Enter"
read input
./oled r
./oled +1 "Hello World!"
./oled +2 "Hello World!"
./oled +3 "Hello World!"
./oled +4 "Hello World!"
sudo ./oled s
echo -n "push Enter"
read input
./oled P2 2
./oled P3 3
./oled P4 4
sudo ./oled s
echo -n "push Enter"
read input
./oled r
./oled +1 "Line 4"
./oled +2 "Line 3"
./oled +3 "Line 2"
./oled +4 "Line 1"
sudo ./oled s
for i in {5..20}
do
./oled -L
cmd="Line "$i
./oled +1 "$cmd"
sleep 1
sudo ./oled s
done
echo -n "push Enter"
read input
./oled r
./oled +1 "Line 1"
./oled +2 "Line 2"
./oled +3 "Line 3"
./oled +4 "Line 4"
sudo ./oled s
for i in {5..20}
do
./oled +L
cmd="Line "$i
./oled +4 "$cmd"
sleep 1
sudo ./oled s
done
echo -n "push Enter"
read input
./oled r
./oled +2 "Thank you!!"
./oled P2 3
./oled +R 2
sudo ./oled s