printrun-src/dot.pronsolerc.example

Fri, 22 Sep 2017 17:40:08 +0200

author
mdd
date
Fri, 22 Sep 2017 17:40:08 +0200
changeset 32
0abfa4642776
parent 15
0bbb006204fc
permissions
-rw-r--r--

SVG bugfix: first shape line not drawn
SVG feature: Dont control the laser via extrusion, switch on at shape start, off at shape end

# Sample .pronsolerc file - copy this into your home directory and rename it to .pronsolerc
!print "Loaded " + self.rc_filename

macro fan
  !global _fan
  !if '_fan' in globals() and _fan:
    !_fan = 0
    M107
    !if hasattr(self,"cur_button") and self.cur_button is not None: 
      !self.onecmd('button %d "fan (off)" /c green fan' % self.cur_button)
  !else:
    !_fan = 1
    M106
    !if hasattr(self,"cur_button") and self.cur_button is not None: 
      !self.onecmd('button %d "fan (on)" /c yellow fan' % self.cur_button)
button 0 "fan (off)" /c "green" fan

mercurial