🐛Fix GT2560_V41b Z2 pin (#26370)

* 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>
This commit is contained in:
ellensp 2023-11-22 06:43:08 +13:00 committed by GitHub
parent cc8f7c83da
commit 6ae2cde663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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
@ -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
*

View file

@ -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