fixed some format problems and cleaned code

This commit is contained in:
AndySze 2015-07-23 15:39:44 +08:00 committed by Richard Wackerbarth
parent eef595aa64
commit 8ac5e56934

View File

@ -6,28 +6,20 @@
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
#if EXTRUDERS > 3
#error RUMBA supports up to 3 extruders. Comment this line to keep going.
#if EXTRUDERS > 2
#error Mega Controller supports up to 2 extruders. Comment this line to keep going.
#endif
#define X_STEP_PIN 62//A8
#define X_DIR_PIN 63//A9
#define X_ENABLE_PIN 61//A7
#ifdef DELTA
#define X_MIN_PIN -1
#else
#define X_MIN_PIN 43
#endif //DELTA
#define X_MAX_PIN 42 //2 //Max endstops default to disabled "-1", set to commented value to enable.
#define X_MAX_PIN 42 //Max endstops default to disabled "-1", set to commented value to enable.
#define Y_STEP_PIN 65 // A11
#define Y_DIR_PIN 66 // A12
#define Y_ENABLE_PIN 64//A10
#ifdef DELTA
#define Y_MIN_PIN -1
#else
#define Y_MIN_PIN 38
#endif //DELTA
#define Y_MAX_PIN 41 //15
#define Y_MAX_PIN 41
#define Z_STEP_PIN 68 // A14
#define Z_DIR_PIN 69 // A15
@ -87,16 +79,14 @@
#if NUM_SERVOS > 1
#define SERVO1_PIN 31
#endif
#if NUM_SERVOS > 2
#define SERVO2_PIN 32
#endif
#if NUM_SERVOS > 3
#define SERVO3_PIN 33
#endif
#endif
#endif
#endif// NUM_SERVOS
#ifdef MINIPANEL
#define BEEPER 46
@ -120,13 +110,3 @@
#define SDCARDDETECT 49
#endif //Minipanel
//encoder rotation values
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1
#define SERVO0_PIN 5