Allow override of CS pins generally

This commit is contained in:
Scott Lahteine
2018-02-04 16:35:52 -06:00
parent 0891b58c30
commit aecf0c9bb9
5 changed files with 83 additions and 32 deletions

View File

@@ -54,44 +54,60 @@
#define X_STEP_PIN 24
#define X_DIR_PIN 23
#define X_ENABLE_PIN 26
#define X_CS_PIN 25
#ifndef X_CS_PIN
#define X_CS_PIN 25
#endif
#define Y_STEP_PIN 17
#define Y_DIR_PIN 16
#define Y_ENABLE_PIN 22
#define Y_CS_PIN 27
#ifndef Y_CS_PIN
#define Y_CS_PIN 27
#endif
#define Z_STEP_PIN 2
#define Z_DIR_PIN 3
#define Z_ENABLE_PIN 15
#define Z_CS_PIN 29
#ifndef Z_CS_PIN
#define Z_CS_PIN 29
#endif
#define E0_STEP_PIN 61
#define E0_DIR_PIN 60
#define E0_ENABLE_PIN 62
#define E0_CS_PIN 31
#ifndef E0_CS_PIN
#define E0_CS_PIN 31
#endif
#define E1_STEP_PIN 64
#define E1_DIR_PIN 63
#define E1_ENABLE_PIN 65
#define E1_CS_PIN 33
#ifndef E1_CS_PIN
#define E1_CS_PIN 33
#endif
#define E2_STEP_PIN 51
#define E2_DIR_PIN 53
#define E2_ENABLE_PIN 49
#define E2_CS_PIN 35
#ifndef E2_CS_PIN
#define E2_CS_PIN 35
#endif
// For Extension Board V2
// http://doku.radds.org/dokumentation/extension-board
//#define E3_STEP_PIN 35
//#define E3_DIR_PIN 33
//#define E3_ENABLE_PIN 37
//#define E3_CS_PIN 6
//#ifndef E3_CS_PIN
// #define E3_CS_PIN 6
//#endif
//#define Z2_STEP_PIN 29
//#define Z2_DIR_PIN 27
//#define Z2_ENABLE_PIN 31
//#define Z2_CS_PIN 39
//#ifndef Z2_CS_PIN
// #define Z2_CS_PIN 39
//#endif
// Microstepping pins - Mapping not from fastio.h (?)
//#define E3_MS1_PIN 67