Add BOARD_MKS_BASE_15 with digital micro-stepping

This commit is contained in:
Scott Lahteine
2018-04-18 20:29:06 -05:00
parent 38ed5f5ee9
commit e561ecb5a7
4 changed files with 51 additions and 18 deletions

View File

@@ -24,23 +24,12 @@
* MKS BASE with Heroic HR4982 stepper drivers
*/
#include "pins_MKS_BASE.h"
#include "pins_MKS_BASE_15.h"
/**
* Microstepping pins (reverse engineered at V1.4 - due to closed source schematics).
* Some new boards use HR4982 (Heroic) instead of the A4982 (Allegro) stepper drivers.
* While most of the functionality is similar, the HR variant obviously doesn't work
* with diode smoothers (no fast decay). And the Heroic has a 128 µStepping mode where
* the A4982 is doing quarter steps (MS1=L / MS2=H).
* Most the functionality is similar, the HR variant obviously doesn't work with diode
* smoothers (no fast decay). And the Heroic has a 128 µStepping mode where the A4982
* is doing quarter steps (MS1=0, MS2=1).
*/
#define HEROIC_STEPPER_DRIVERS
#define X_MS1_PIN 5 // Digital 3 / Pin 5 / PE3 / SERVO2_PIN
#define X_MS2_PIN 6 // Digital 6 / Pin 14 / PH3 / SERVO1_PIN
#define Y_MS1_PIN 59 // Analog 5 / Pin 92 / PF5
#define Y_MS2_PIN 58 // Analog 4 / Pin 93 / PF4
#define Z_MS1_PIN 22 // Digital 22 / Pin 78 / PA0
#define Z_MS2_PIN 39 // Digital 39 / Pin 70 / PG2
#define E0_MS1_PIN 63 // Analog 9 / Pin 86 / PK1
#define E0_MS2_PIN 64 // Analog 10 / Pin 87 / PK2
#define E1_MS1_PIN 57 // Analog 3 / Pin 93 / PF3
#define E1_MS2_PIN 4 // Digital 4 / Pin 1 / PG5 / SERVO3_PIN