Skip to content

Commit

Permalink
🐛Fix GT2560_V41b Z2 pin (#26370)
Browse files Browse the repository at this point in the history
* Update pins_GT2560_V41b.h

Fix Z2_STOP_PIN

* use mega2560ext

when board has pins > D69

* Allow overrides, consistent with other pins in this file

---------

Co-authored-by: Jason Smith <jason.inet@gmail.com>
  • Loading branch information
ellensp and sjasonsmith committed Nov 21, 2023
1 parent cc8f7c8 commit 6ae2cde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/pins/mega/pins_GT2560_V41b.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@
* X AXIS Y AXIS Z1 AXIS Z0 AXIS
* --- --- --- ---
* | 1 | 5V | 1 | 5V | 1 | 5V | 1 | 5V
* | 2 | 24 X_MIN | 2 | 28 Y_MIN | 2 | PE7 Z1_MIN | 2 | 30 Z0_MIN
* | 2 | 24 X_MIN | 2 | 28 Y_MIN | 2 | 80 Z1_MIN | 2 | 30 Z0_MIN
* | 3 | GND | 3 | GND | 3 | GND | 3 | GND
* --- --- --- ---
* J3 J4 J5 J6
*
*/

//#define Z1_MIN PE7 // Number??

#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
#define X_MIN_PIN 24
Expand All @@ -84,6 +82,9 @@
#define Z_MAX_PIN 32
#endif
#endif
#ifndef Z2_STOP_PIN
#define Z2_STOP_PIN 80 // PE7 - Extended mega2560 pin
#endif

/** Filament Runout Sensors
*
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
#elif MB(WEEDO_62A)
#include "mega/pins_WEEDO_62A.h" // ATmega2560 env:mega2560
#elif MB(GT2560_V41B)
#include "mega/pins_GT2560_V41b.h" // ATmega2560 env:mega2560
#include "mega/pins_GT2560_V41b.h" // ATmega2560 env:mega2560ext

//
// ATmega1281, ATmega2561
Expand Down

0 comments on commit 6ae2cde

Please sign in to comment.