forked from Seeed-Studio/Seeed_Python_ReTerminalQt5Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage3_HW_Monitor.ui.qml
133 lines (118 loc) · 3.13 KB
/
Page3_HW_Monitor.ui.qml
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import QtQuick 2.8
import "backend/Data" as Data
Item {
id: hardware
width: 1280
height: 720
property alias axisXvalue: accel1.count
property alias lightaxisXvalue: light.lightcount
Image {
id: hardwareAsset
x: 0
y: 0
width: 1280
height: 720
source: "assets/hardware.png"
}
Light_sensor {
id: light
x: -5
y: -50
width: 833
height: 480
scale: 0.67
property int lightcount: 0
function lightimerChange() {
lightaxisX.append(lightcount,Data.Values.lightvalue)
lightcount = lightcount + 1
if (lightcount > 6 ) {
lightaxisX.remove(0)
}
}
}
property Timer lightTimer: Timer{
running: true
repeat: true
onTriggered: light.lightimerChange()
interval: 100
}
Accelerometer {
id: accel1
x: -5
y: 295
width: 833
height: 480
scale: 0.67
property int count: 0
function timerChange() {
axisX.append(count,Data.Values.displayaxisX)
axisY.append(count,Data.Values.displayaxisY)
axisZ.append(count,Data.Values.displayaxisZ)
count = count + 1
if (accel1.count > 6 ) {
axisX.remove(0)
axisY.remove(0)
axisZ.remove(0)
}
}
}
property Timer axisTimer: Timer{
running: true
repeat: true
onTriggered: accel1.timerChange()
interval: 100
}
Touch_panel {
id: touch_panel_123
x: 566
y: 295
width: 835
height: 481
circle5Scale: Data.Values.circle5Scale
circle4Scale: Data.Values.circle4Scale
circle3Scale: Data.Values.circle3Scale
circle2Scale: Data.Values.circle2Scale
circle1Scale: Data.Values.circle1Scale
circle5Visible: Data.Values.circle5Visible
circle4Visible: Data.Values.circle4Visible
circle3Visible: Data.Values.circle3Visible
circle2Visible: Data.Values.circle2Visible
circle1Visible: Data.Values.circle1Visible
circle5Y: Data.Values.circle5y
circle5X: Data.Values.circle5x
circle4Y: Data.Values.circle4y
circle4X: Data.Values.circle4x
circle3Y: Data.Values.circle3y
circle3X: Data.Values.circle3x
circle2Y: Data.Values.circle2y
circle2X: Data.Values.circle2x
circle1Y: Data.Values.circle1y
circle1X: Data.Values.circle1x
scale: 0.67
}
LEDs_Buttons {
id: leds_v2
x: 566
y: -50
width: 835
height: 481
scale: 0.67
o_buttonVisible: Data.Values.o1Visible
f3_buttonVisible: Data.Values.f3Visible
f2_buttonVisible: Data.Values.f2Visible
f1_buttonVisible: Data.Values.f1Visible
}
Page3_navigation_bar {
id: ui_navigate_4
x: -26
y: -178
width: 159
height: 1080
scale: 0.67
}
}
/*##^##
Designer {
D{i:0;formeditorZoom:0.75;uuid:"db758c043a516da3a6cc8edd0f479654"}D{i:1;uuid:"db758c043a516da3a6cc8edd0f479654_asset"}
}
##^##*/