/ configs / sim / test.vcp
test.vcp
 1  vcp {
 2      main-window {
 3  	title = "Testing"
 4  	width = 300
 5  	height = 300
 6  	# this box will hold three side-by-side boxes, one for each axis
 7  	box {
 8  	    layout = horizontal
 9  	    # this box holds stuff for the X axis
10  	    box {
11  		layout = vertical
12  		title = "X"
13  		button {
14  		    halpin = button.X-pos-limit
15  		    label { text = "+lim" }
16  		}
17  		button {
18  		    halpin = button.X-neg-limit
19  		    label { text = "-lim" }
20  		}
21  		button {
22  		    halpin = button.X-home
23  		    label { text = "home" }
24  		}
25  		label { text = "X switches" }
26  	    }
27  	    # this box holds stuff for the Y axis
28  	    box {
29  		layout = vertical
30  		title = "Y"
31  		button {
32  		    halpin = button.Y-pos-limit
33  		    label { text = "+lim" }
34  		}
35  		button {
36  		    halpin = button.Y-neg-limit
37  		    label { text = "-lim" }
38  		}
39  		button {
40  		    halpin = button.Y-home
41  		    label { text = "home" }
42  		}
43  		label { text = "Y switches" }
44  	    }
45  	    # this box holds stuff for the Z axis
46  	    box {
47  		layout = vertical
48  		title = "Z"
49  		button {
50  		    halpin = button.Z-pos-limit
51  		    label { text = "+lim" }
52  		}
53  		button {
54  		    halpin = button.Z-neg-limit
55  		    label { text = "-lim" }
56  		}
57  		button {
58  		    halpin = button.Z-home
59  		    box {
60  			layout = horizontal
61  			LED { halpin = led.Z-home }
62  			label { padding = 1 text = "home" }
63  		    }
64  		}
65  		label { text = "Z switches" }
66  	    }
67  	    # this box holds stuff for the spindle
68  	    box {
69  		layout = vertical
70  		title = "spindle"
71  		LED {
72  		    size = 25
73  		    halpin = led.0
74  		    on-color = "#F00"
75  		    off-color = "#600"
76  		}
77  		LED {
78  		    halpin = led.1
79  		    on-color = "#FF0"
80  		    off-color = "#660"
81  		}
82  		LED {
83  		    halpin = led.2
84  		    on-color = "#0F0"
85  		    off-color = "#060"
86  		}
87  	    }
88  	}
89      } # main-window
90  }
91