chiark / gitweb /
Add PronterfaceUI plugin.
authordaid <daid303@gmail.com>
Wed, 12 Feb 2014 12:02:22 +0000 (13:02 +0100)
committerdaid <daid303@gmail.com>
Wed, 12 Feb 2014 12:02:22 +0000 (13:02 +0100)
plugins/PronterfaceUI/image.png [new file with mode: 0644]
plugins/PronterfaceUI/map.png [new file with mode: 0644]
plugins/PronterfaceUI/script.py [new file with mode: 0644]

diff --git a/plugins/PronterfaceUI/image.png b/plugins/PronterfaceUI/image.png
new file mode 100644 (file)
index 0000000..fc2c998
Binary files /dev/null and b/plugins/PronterfaceUI/image.png differ
diff --git a/plugins/PronterfaceUI/map.png b/plugins/PronterfaceUI/map.png
new file mode 100644 (file)
index 0000000..ae414e0
Binary files /dev/null and b/plugins/PronterfaceUI/map.png differ
diff --git a/plugins/PronterfaceUI/script.py b/plugins/PronterfaceUI/script.py
new file mode 100644 (file)
index 0000000..22270cf
--- /dev/null
@@ -0,0 +1,49 @@
+#Name: Pronterface UI
+#Info: Pronterface like UI for Cura
+#Depend: printWindow
+#Type: printwindow
+
+# Printer UI based on the Printrun interface by Kliment.
+# Printrun is GPLv3, so this file, and the used images are GPLv3
+
+setImage('image.png', 'map.png')
+
+addColorCommand(0, 0, 255, sendGCode, "G91; G1 X100 F2000; G90")
+addColorCommand(0, 0, 240, sendGCode, "G91; G1 X10 F2000; G90")
+addColorCommand(0, 0, 220, sendGCode, "G91; G1 X1 F2000; G90")
+addColorCommand(0, 0, 200, sendGCode, "G91; G1 X0.1 F2000; G90")
+addColorCommand(0, 0, 180, sendGCode, "G91; G1 X-0.1 F2000; G90")
+addColorCommand(0, 0, 160, sendGCode, "G91; G1 X-1 F2000; G90")
+addColorCommand(0, 0, 140, sendGCode, "G91; G1 X-10 F2000; G90")
+addColorCommand(0, 0, 120, sendGCode, "G91; G1 X-100 F2000; G90")
+
+addColorCommand(0, 255, 0, sendGCode, "G91; G1 Y100 F2000; G90")
+addColorCommand(0, 240, 0, sendGCode, "G91; G1 Y10 F2000; G90")
+addColorCommand(0, 220, 0, sendGCode, "G91; G1 Y1 F2000; G90")
+addColorCommand(0, 200, 0, sendGCode, "G91; G1 Y0.1 F2000; G90")
+addColorCommand(0, 180, 0, sendGCode, "G91; G1 Y-0.1 F2000; G90")
+addColorCommand(0, 160, 0, sendGCode, "G91; G1 Y-1 F2000; G90")
+addColorCommand(0, 140, 0, sendGCode, "G91; G1 Y-10 F2000; G90")
+addColorCommand(0, 120, 0, sendGCode, "G91; G1 Y-100 F2000; G90")
+
+addColorCommand(255, 0, 0, sendGCode, "G91; G1 Z10 F200; G90")
+addColorCommand(220, 0, 0, sendGCode, "G91; G1 Z1 F200; G90")
+addColorCommand(200, 0, 0, sendGCode, "G91; G1 Z0.1 F200; G90")
+addColorCommand(180, 0, 0, sendGCode, "G91; G1 Z-0.1 F200; G90")
+addColorCommand(160, 0, 0, sendGCode, "G91; G1 Z-1 F200; G90")
+addColorCommand(140, 0, 0, sendGCode, "G91; G1 Z-10 F200; G90")
+
+addColorCommand(255, 255, 0, sendGCode, "G28")
+addColorCommand(240, 255, 0, sendGCode, "G28 X0")
+addColorCommand(220, 255, 0, sendGCode, "G28 Y0")
+addColorCommand(200, 255, 0, sendGCode, "G28 Z0")
+
+addTerminal(255, 0, 255)
+addTemperatureGraph(180, 0, 255)
+addProgressbar(255, 200, 200)
+
+addButton(0, 255, 255, 'Connect', connect)
+addButton(0, 240, 255, 'Print', startPrint)
+addButton(0, 220, 255, 'Pause', pausePrint)
+addButton(0, 200, 255, 'Cancel', cancelPrint)
+addButton(0, 180, 255, 'Error log', showErrorLog)