chiark / gitweb /
pronsolerc: retract and prefeed buttons
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 22:49:03 +0000 (22:49 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Nov 2012 22:49:03 +0000 (22:49 +0000)
pronsolerc

index ab53a11..733d068 100644 (file)
@@ -1,10 +1,20 @@
 set port /dev/ttyUSB0
 set last_temperature 215.0
 
+macro button_retract
+      M83
+      G1 E-220 F2000
+      M84
+
+macro button_prefeed
+      M83
+      G1 E220 F2000
+      M84
+
 button 3 "FAN ON" /c "#C8C8C8" M106 S200
 button 4 "GET POS" /c "#C8C8C8" M114
-button 5 "ECHO" /c "#C8C8C8" loud
-button 6 "QUIET" /c "#C8C8C8" quiet
+button 5 "RETRACT" button_retract
+button 6 "PREFEED" button_prefeed
 button 7 "BL" G1 X135 Y15 F12000
 button 8 "CENTRE" G1 X70 Y70 F12000
 button 9 "BR" G1 X15 Y15 F12000