forked from RonanValadez34/DPI_Computer_UI
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.kv
More file actions
108 lines (93 loc) · 2.66 KB
/
main.kv
File metadata and controls
108 lines (93 loc) · 2.66 KB
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
100
101
102
103
104
105
106
<MainScreen>:
#: import time __main__.time
name: 'main'
FloatLayout:
size_hint: None, None
# button to change to stepper screen
DPEAButton:
id: test_button
text: 'Test Stepper'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.15
color: 0, 1, 0, 1
on_press: app.root.current = "StepperStartup"
# button to change to servo screen
DPEAButton:
text: "Test Servo"
size: 100, 100
x: root.width * 0.5
y: root.height * 0.25
color: 1, 0, 0, 1
on_press: app.root.current = "servo"
# button to change to button screen
DPEAButton:
text: "Test Button"
size: 100, 100
x: root.width * 0.5
y: root.height * 0.35
color: 1, 0, 0, 1
on_press: app.root.current = "button"
# button to change to DC screen
DPEAButton:
id: test_button
text: 'Test DC Motor'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.45
color: 0, 1, 0, 1
on_press: app.root.current = "DC"
# button to change to input screen
DPEAButton:
id: test_button
text: 'Test Input'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.55
color: 0, 1, 0, 1
on_press: app.root.current = "input"
# button to change to output screen
DPEAButton:
id: test_button
text: 'Test Output'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.65
color: 0, 1, 0, 1
on_press: app.root.current = "output"
# button to change to neopixel screen
DPEAButton:
id: test_button
text: 'Test Neopixel'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.75
color: 0, 1, 0, 1
on_press: app.root.current = "Neopixel"
# button to change to encoder screen
DPEAButton:
id: test_button
text: 'Test Encoder'
size: 100, 100
x: root.width * 0.5
y: root.height * 0.85
color: 0, 1, 0, 1
on_press: app.root.current = "Encoder"
# button to change to potentiometer screen
DPEAButton:
id: test_button
text: 'Test Potentiometer'
size: 100, 100
x: root.width * 0.65
y: root.height * 0.85
color: 0, 1, 0, 1
on_press: app.root.current = "Potentiometer"
DPEAButton:
# Quit button
size: 100, 100
center_x: root.width * 0.95
center_y: root.height * 0.95
background_color: 0,0,0,0
color: 0.035, 0.152, 0.725, 1
text: "Quit"
on_press: root.exit_program()