|
|
@ -30,7 +30,7 @@ |
|
|
|
|
|
|
|
#define DISABLE_JTAG |
|
|
|
|
|
|
|
#define pins_v2_20190128 // geo-f:add for new pins define
|
|
|
|
#define pins_v2_20190128 // new pins define
|
|
|
|
|
|
|
|
// Ignore temp readings during development.
|
|
|
|
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
|
|
@ -84,32 +84,32 @@ |
|
|
|
#define E0_DIR_PIN PC14 |
|
|
|
#define E0_ENABLE_PIN PC13 |
|
|
|
|
|
|
|
#if HAS_TMC220x |
|
|
|
|
|
|
|
/**
|
|
|
|
* TMC2208/TMC2209 stepper drivers |
|
|
|
*/ |
|
|
|
|
|
|
|
//
|
|
|
|
// Stepper current PWM
|
|
|
|
// Hardware serial with switch
|
|
|
|
//
|
|
|
|
#define X_HARDWARE_SERIAL Serial1 |
|
|
|
#define Y_HARDWARE_SERIAL Serial1 |
|
|
|
#define Z_HARDWARE_SERIAL Serial1 |
|
|
|
#define E0_HARDWARE_SERIAL Serial1 |
|
|
|
#define TMC_SERIAL_MULTIPLEXER |
|
|
|
#define SERIAL_MUL_PIN1 PB13 |
|
|
|
#define SERIAL_MUL_PIN2 PB12 |
|
|
|
|
|
|
|
// X:PA2 Y:PA3 Z:PB12 E:PB13 // changed for test
|
|
|
|
//#define MOTOR_CURRENT_PWM_XY_PIN PA3
|
|
|
|
//#define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
|
|
|
|
//#define MOTOR_CURRENT_PWM_XY_PIN PB6
|
|
|
|
//#define MOTOR_CURRENT_PWM_Z_PIN PB7 // PB12
|
|
|
|
//#define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
|
|
|
|
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
|
|
|
|
#endif |
|
|
|
|
|
|
|
//
|
|
|
|
// Stepper current PWM
|
|
|
|
//
|
|
|
|
#ifndef MOTOR_CURRENT_PWM_RANGE |
|
|
|
#define MOTOR_CURRENT_PWM_RANGE 1500 // geo-f:old 2000
|
|
|
|
#endif |
|
|
|
#define DEFAULT_PWM_MOTOR_CURRENT {500, 500, 400} // geo-f:old 1300 1300 1250
|
|
|
|
|
|
|
|
// 采用 SDIO PCB从左到右数
|
|
|
|
// 1:PC10 - SDIO_D2
|
|
|
|
// 2:PC11 - SDIO_D3
|
|
|
|
// 3:PD2 - SDIO_CMD
|
|
|
|
// 4:VCC
|
|
|
|
// 5:PC12 - SDIO_CK
|
|
|
|
// 6:VDD
|
|
|
|
// 7:PC8 - SDIO_D0
|
|
|
|
// 8:PC9 - SDIO_D1
|
|
|
|
// 9:PA15 - SD_DETECT_PIN
|
|
|
|
#define MOTOR_CURRENT_PWM_RANGE 1500 // origin:2000
|
|
|
|
#endif |
|
|
|
#define DEFAULT_PWM_MOTOR_CURRENT { 500, 500, 400 } // origin: {1300,1300,1250}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|