Wed, 20 Jan 2021 10:15:13 +0100
updated and added new files for printrun
15 | 1 | # Sample .pronsolerc file - copy this into your home directory and rename it to .pronsolerc |
2 | !print "Loaded " + self.rc_filename | |
3 | ||
4 | macro fan | |
5 | !global _fan | |
6 | !if '_fan' in globals() and _fan: | |
7 | !_fan = 0 | |
8 | M107 | |
9 | !if hasattr(self,"cur_button") and self.cur_button is not None: | |
10 | !self.onecmd('button %d "fan (off)" /c green fan' % self.cur_button) | |
11 | !else: | |
12 | !_fan = 1 | |
13 | M106 | |
14 | !if hasattr(self,"cur_button") and self.cur_button is not None: | |
15 | !self.onecmd('button %d "fan (on)" /c yellow fan' % self.cur_button) | |
16 | button 0 "fan (off)" /c "green" fan |