Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
b5de9621
Commit
b5de9621
authored
Dec 09, 2014
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Insert invert rotary switch
parent
bd46d0fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Configuration.h
MarlinKimbra/Configuration.h
+2
-0
Configuration_Cartesian.h
MarlinKimbra/Configuration_Cartesian.h
+1
-1
ultralcd.cpp
MarlinKimbra/ultralcd.cpp
+5
-0
No files found.
MarlinKimbra/Configuration.h
View file @
b5de9621
...
@@ -531,6 +531,8 @@
...
@@ -531,6 +531,8 @@
#endif
#endif
#endif
#endif
// option for invert rotary switch
//#define INVERT_ROTARY_SWITCH
// Languages
// Languages
// 1 English
// 1 English
...
...
MarlinKimbra/Configuration_Cartesian.h
View file @
b5de9621
...
@@ -41,7 +41,7 @@ const bool E_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
...
@@ -41,7 +41,7 @@ const bool E_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic o
const
bool
X_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
const
bool
X_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
const
bool
Y_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
const
bool
Y_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
const
bool
Z_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
const
bool
Z_MAX_ENDSTOP_INVERTING
=
false
;
// set to true to invert the logic of the endstop.
#define DISABLE_MAX_ENDSTOPS
//
#define DISABLE_MAX_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS
//#define DISABLE_MIN_ENDSTOPS
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
...
...
MarlinKimbra/ultralcd.cpp
View file @
b5de9621
...
@@ -1597,8 +1597,13 @@ void lcd_buttons_update()
...
@@ -1597,8 +1597,13 @@ void lcd_buttons_update()
{
{
#ifdef NEWPANEL
#ifdef NEWPANEL
uint8_t
newbutton
=
0
;
uint8_t
newbutton
=
0
;
#ifdef INVERT_ROTARY_SWITCH
if
(
READ
(
BTN_EN1
)
==
0
)
newbutton
|=
EN_B
;
if
(
READ
(
BTN_EN2
)
==
0
)
newbutton
|=
EN_A
;
#else
if
(
READ
(
BTN_EN1
)
==
0
)
newbutton
|=
EN_A
;
if
(
READ
(
BTN_EN1
)
==
0
)
newbutton
|=
EN_A
;
if
(
READ
(
BTN_EN2
)
==
0
)
newbutton
|=
EN_B
;
if
(
READ
(
BTN_EN2
)
==
0
)
newbutton
|=
EN_B
;
#endif
#if BTN_ENC > 0
#if BTN_ENC > 0
if
((
blocking_enc
<
millis
())
&&
(
READ
(
BTN_ENC
)
==
0
))
if
((
blocking_enc
<
millis
())
&&
(
READ
(
BTN_ENC
)
==
0
))
newbutton
|=
EN_C
;
newbutton
|=
EN_C
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment