printrun-src/custombtn.txt

Sat, 23 Sep 2017 10:27:49 +0200

author
mdd
date
Sat, 23 Sep 2017 10:27:49 +0200
changeset 34
654a41b13258
parent 15
0bbb006204fc
permissions
-rw-r--r--

Added more default options
Code cleanup

15
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
1 btns=[
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
2 ###Defining custom buttons for pronterface is easy. Here's how.
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
3 ###Below these instructions, add a line with the following format for each button
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
4 # ["button name","command",color(RGB)], <--That comma is important, do not forget it
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
5 ###As an example: (Remove the # to try it out):
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
6 #["Read temp","M105",(200,100,100)],
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
7 #["Disable Axes","M84",(400,100,100)],
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
8 ###You can use gcodes or any pronsole/pronterface commands
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
9 ###The first four buttons will end up at the top of the window, visible in mini mode
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
10 ###The rest of the buttons will be at the bottom under the gcode preview
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
11 ###ADD BUTTON DEFINITIONS BELOW THIS LINE
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
12
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
13
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
14
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
15
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
16 ###ADD BUTTON DEFINITIONS ABOVE THIS LINE
0bbb006204fc Added printrun sourcecode from
mbayer
parents:
diff changeset
17 ]

mercurial