-
Notifications
You must be signed in to change notification settings - Fork 0
/
banco.py
executable file
·48 lines (40 loc) · 1.52 KB
/
banco.py
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
#!/usr/bin/python
# banco.py
# Versione per banco basato su CM3-Panel
import time
import sys
import getopt
import string
import time
import sys
import getopt
import string
import datetime
import RPi.GPIO as GPIO
import os
print "Banco test CM3-Panel"
os.system("clear <> /dev/console >&0 2>&1")
os.system("echo 'Test backlight' <> /dev/console >&0 2>&1")
time.sleep(1)
os.system("/home/pi/banco_test_cm3panel/backlight.py <> /dev/console >&0 2>&1")
os.system("echo 'Fine test backlight' <> /dev/console >&0 2>&1")
os.system("echo '------------------------------------' <> /dev/console >&0 2>&1")
os.system("echo 'Test touch: tocca lo schermo' <> /dev/console >&0 2>&1 &")
time.sleep(1)
os.system("/home/pi/banco_test_cm3panel/touch.py <> /dev/console >&0 2>&1 &")
time.sleep(3)
os.system("pkill touch.py")
os.system("echo 'Fine test touch' <> /dev/console >&0 2>&1")
os.system("echo '------------------------------------' <> /dev/console >&0 2>&1")
os.system("echo 'Test camera:' <> /dev/console >&0 2>&1")
time.sleep(1)
os.system("/home/pi/banco_test_cm3panel/camera.py <> /dev/console >&0 2>&1")
os.system("echo 'Fine test touch' <> /dev/console >&0 2>&1")
os.system("echo '------------------------------------' <> /dev/console >&0 2>&1")
os.system("echo 'Test GPIO:' <> /dev/console >&0 2>&1")
time.sleep(1)
os.system("/home/pi/banco_test_cm3panel/gpio.py <> /dev/console >&0 2>&1")
os.system("echo 'Fine test GPIO' <> /dev/console >&0 2>&1")
os.system("echo 'FINE TEST' <> /dev/console >&0 2>&1")
while True:
time.sleep(1)