Configtool: also deal with PS_INVERT_ON.
This partially solves issue #165.
This commit is contained in:
parent
bb275e2c21
commit
11e907de03
|
|
@ -82,6 +82,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN DIO14
|
//#define PS_ON_PIN DIO14
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN DIO8
|
#define STEPPER_ENABLE_PIN DIO8
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO14
|
#define PS_ON_PIN DIO14
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN DIO25
|
//#define STEPPER_ENABLE_PIN DIO25
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN PIO0_4
|
#define PS_ON_PIN PIO0_4
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN PIO0_4
|
#define STEPPER_ENABLE_PIN PIO0_4
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO15
|
#define PS_ON_PIN DIO15
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN DIO24
|
#define STEPPER_ENABLE_PIN DIO24
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO15
|
#define PS_ON_PIN DIO15
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN DIO25
|
#define STEPPER_ENABLE_PIN DIO25
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO45
|
#define PS_ON_PIN DIO45
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO9
|
#define PS_ON_PIN DIO9
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN DIO4
|
#define STEPPER_ENABLE_PIN DIO4
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO9
|
#define PS_ON_PIN DIO9
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO0
|
#define PS_ON_PIN DIO0
|
||||||
|
//#define PS_INVERT_ON
|
||||||
#define PS_MOSFET_PIN DIO25
|
#define PS_MOSFET_PIN DIO25
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO27
|
#define PS_ON_PIN DIO27
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN DIO25
|
//#define PS_MOSFET_PIN DIO25
|
||||||
#define STEPPER_ENABLE_PIN DIO26
|
#define STEPPER_ENABLE_PIN DIO26
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN DIO0
|
//#define PS_ON_PIN DIO0
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN DIO25
|
//#define PS_MOSFET_PIN DIO25
|
||||||
#define STEPPER_ENABLE_PIN DIO19
|
#define STEPPER_ENABLE_PIN DIO19
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
//#define PS_ON_PIN xxxx
|
//#define PS_ON_PIN xxxx
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
//#define STEPPER_ENABLE_PIN xxxx
|
//#define STEPPER_ENABLE_PIN xxxx
|
||||||
//#define STEPPER_INVERT_ENABLE
|
//#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
#define E_INVERT_ENABLE
|
#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN xxxx
|
#define PS_ON_PIN xxxx
|
||||||
|
#define PS_INVERT_ON
|
||||||
#define PS_MOSFET_PIN xxxx
|
#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN xxxx
|
#define STEPPER_ENABLE_PIN xxxx
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ class PinoutsPage(wx.Panel, Page):
|
||||||
'E_INVERT_ENABLE': "Invert Enable",
|
'E_INVERT_ENABLE': "Invert Enable",
|
||||||
|
|
||||||
'PS_ON_PIN': "PSU On Pin:",
|
'PS_ON_PIN': "PSU On Pin:",
|
||||||
|
'PS_INVERT_ON': "Invert PSU On Pin",
|
||||||
'PS_MOSFET_PIN': "PSU MOSFET Pin:",
|
'PS_MOSFET_PIN': "PSU MOSFET Pin:",
|
||||||
|
|
||||||
'STEPPER_ENABLE_PIN': "Stepper Enable Pin:",
|
'STEPPER_ENABLE_PIN': "Stepper Enable Pin:",
|
||||||
|
|
@ -159,9 +160,13 @@ class PinoutsPage(wx.Panel, Page):
|
||||||
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
||||||
sz.Add(tc, pos = (3, 3))
|
sz.Add(tc, pos = (3, 3))
|
||||||
|
|
||||||
|
k = "PS_INVERT_ON"
|
||||||
|
cb = self.addCheckBox(k, self.onCheckBox)
|
||||||
|
sz.Add(cb, pos = (5, 3), flag = wx.ALIGN_CENTER_HORIZONTAL)
|
||||||
|
|
||||||
k = "PS_MOSFET_PIN"
|
k = "PS_MOSFET_PIN"
|
||||||
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
||||||
sz.Add(tc, pos = (5, 3))
|
sz.Add(tc, pos = (7, 3))
|
||||||
|
|
||||||
k = "SD_CARD_SELECT_PIN"
|
k = "SD_CARD_SELECT_PIN"
|
||||||
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
tc = self.addPinChoice(k, "", pinNames, True, labelWidth)
|
||||||
|
|
|
||||||
|
|
@ -338,6 +338,7 @@
|
||||||
//#define E_INVERT_ENABLE
|
//#define E_INVERT_ENABLE
|
||||||
|
|
||||||
#define PS_ON_PIN DIO15
|
#define PS_ON_PIN DIO15
|
||||||
|
//#define PS_INVERT_ON
|
||||||
//#define PS_MOSFET_PIN xxxx
|
//#define PS_MOSFET_PIN xxxx
|
||||||
#define STEPPER_ENABLE_PIN DIO25
|
#define STEPPER_ENABLE_PIN DIO25
|
||||||
#define STEPPER_INVERT_ENABLE
|
#define STEPPER_INVERT_ENABLE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue