printrun-src/custombtn.txt

Wed, 20 Jan 2021 10:15:13 +0100

author
mdd
date
Wed, 20 Jan 2021 10:15:13 +0100
changeset 46
cce0af6351f0
parent 15
0bbb006204fc
permissions
-rw-r--r--

updated and added new files for printrun

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