diff options
author | daid <daid303@gmail.com> | 2013-08-05 14:29:12 +0400 |
---|---|---|
committer | daid <daid303@gmail.com> | 2013-08-05 14:29:12 +0400 |
commit | d2ea654a8328ce5c5e86f6aa3f80e0e91e96b661 (patch) | |
tree | 7a2a58d251e6fd1e8791e655406a2ff9b81b82f4 /Cura/gui/tools | |
parent | 19419a3fd6d644a22662f4a2ccbfbd9f5d1c76b2 (diff) |
Add 50% fan to PID debugger.
Diffstat (limited to 'Cura/gui/tools')
-rw-r--r-- | Cura/gui/tools/pidDebugger.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Cura/gui/tools/pidDebugger.py b/Cura/gui/tools/pidDebugger.py index 1a313a6123..551dc31f5a 100644 --- a/Cura/gui/tools/pidDebugger.py +++ b/Cura/gui/tools/pidDebugger.py @@ -17,6 +17,7 @@ class debuggerWindow(wx.Frame): self.heatupButton2 = wx.Button(self, -1, '260C') self.heatupButton3 = wx.Button(self, -1, '300C') self.fanOn = wx.Button(self, -1, 'Fan ON') + self.fanOn50 = wx.Button(self, -1, 'Fan ON 50%') self.fanOff = wx.Button(self, -1, 'Fan OFF') self.graph = temperatureGraph(self) self.targetTemp = 0 @@ -26,17 +27,18 @@ class debuggerWindow(wx.Frame): self.sizer = wx.GridBagSizer(0, 0) self.SetSizer(self.sizer) - self.sizer.Add(self.graph, pos=(0, 0), span=(1, 7), flag=wx.EXPAND) + self.sizer.Add(self.graph, pos=(0, 0), span=(1, 8), flag=wx.EXPAND) self.sizer.Add(self.coolButton, pos=(1, 0), flag=wx.EXPAND) self.sizer.Add(self.heatupButton, pos=(1, 1), flag=wx.EXPAND) self.sizer.Add(self.heatupButton2, pos=(1, 2), flag=wx.EXPAND) self.sizer.Add(self.heatupButton3, pos=(1, 3), flag=wx.EXPAND) self.sizer.Add(self.fanOn, pos=(1, 4), flag=wx.EXPAND) - self.sizer.Add(self.fanOff, pos=(1, 5), flag=wx.EXPAND) + self.sizer.Add(self.fanOn50, pos=(1, 5), flag=wx.EXPAND) + self.sizer.Add(self.fanOff, pos=(1, 6), flag=wx.EXPAND) self.sizer.Add(self.pValue, pos=(2, 0), flag=wx.EXPAND) self.sizer.Add(self.iValue, pos=(2, 1), flag=wx.EXPAND) self.sizer.Add(self.dValue, pos=(2, 2), flag=wx.EXPAND) - self.sizer.AddGrowableCol(6) + self.sizer.AddGrowableCol(7) self.sizer.AddGrowableRow(0) wx.EVT_CLOSE(self, self.OnClose) @@ -45,6 +47,7 @@ class debuggerWindow(wx.Frame): self.Bind(wx.EVT_BUTTON, lambda e: self.setTemp(260), self.heatupButton2) self.Bind(wx.EVT_BUTTON, lambda e: self.setTemp(300), self.heatupButton3) self.Bind(wx.EVT_BUTTON, lambda e: self.machineCom.sendCommand('M106'), self.fanOn) + self.Bind(wx.EVT_BUTTON, lambda e: self.machineCom.sendCommand('M106 S128'), self.fanOn50) self.Bind(wx.EVT_BUTTON, lambda e: self.machineCom.sendCommand('M107'), self.fanOff) self.Bind(wx.EVT_TEXT, self.updatePID, self.pValue) self.Bind(wx.EVT_TEXT, self.updatePID, self.iValue) |