forked from embeddedprojects/gnublin-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-gnublin-tools.sh
executable file
·67 lines (55 loc) · 1.46 KB
/
test-gnublin-tools.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
#!/bin/bash
echo "##########################" > test.log
echo "# Test Log Gnublin-tools #" >> test.log
echo "##########################" >> test.log
date >> test.log
#Test relay module
echo "START testing relay module" >> test.log
for i in {1..8}
do
gnublin-relay -o 1 -p $i >> test.log
done
for i in {1..8}
do
gnublin-relay -o 0 -p $i >> test.log
done
echo "STOP testing relay module" >> test.log
#Test dogm module
echo "START testing dogm module" >> test.log
gnublin-dogm -i >> test.log
gnublin-dogm -l 1 -w "Line 1" >> test.log
sleep 0.5
gnublin-dogm -l 2 -w "Line 2" >> test.log
sleep 0.5
gnublin-dogm -d >> test.log
gnublin-dogm -o 5 -w "test" >> test.log
sleep 0.5
gnublin-dogm -o 25 -w "test" >> test.log
sleep 0.5
gnublin-dogm -n >> test.log
echo "STOP testing dogm module" >> test.log
#Test lm75 module
echo "START testing lm75 module" >> test.log
gnublin-lm75 >> test.log
gnublin-lm75 -j >> test.log
gnublin-lm75 -b >> test.log
echo "STOP testing lm75 module" >> test.log
#Test step module
echo "START testing step module" >> test.log
gnublin-step -a76 -p 6400
sleep 2
echo "STOP testing step module" >> test.log
#Test LCD module
echo "START testing lcd module" >> test.log
gnublin-lcd -a 0x21 -i >> test.log
gnublin-lcd -a 0x21 -d >> test.log
for i in {1..4}
do
gnublin-lcd -a 0x21 -l $i -w "Line $i" >> test.log
done
for i in {1..4}
do
gnublin-lcd -a 0x21 -l $i -o 9 -w "bla" >> test.log
done
echo "STOP testing lcd module" >> test.log
less test.log