#define KNOWN_BOARD 1
//////////////////FIX THIS//////////////
#ifndef AVR_ATmega1280
#ifndef AVR_ATmega2560
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
#endif
// X/Y/Z Steppers and MIN endstops verified
#define ORIG_X_STEP_PIN 54
#define ORIG_X_DIR_PIN 55
#define ORIG_X_ENABLE_PIN 38
#define ORIG_X_MIN_PIN 3
#define ORIG_X_MAX_PIN -1
#define ORIG_Y_STEP_PIN 60
#define ORIG_Y_DIR_PIN 61
#define ORIG_Y_ENABLE_PIN 56
#define ORIG_Y_MIN_PIN 14
#define ORIG_Y_MAX_PIN -1
#define ORIG_Z_STEP_PIN 46
#define ORIG_Z_DIR_PIN 48
#define ORIG_Z_ENABLE_PIN 63
#define ORIG_Z_MIN_PIN 18
#define ORIG_Z_MAX_PIN -1
#define ORIG_E0_STEP_PIN 26 // from schematic
#define ORIG_E0_DIR_PIN 28 // from schematic
#define ORIG_E0_ENABLE_PIN 24 // from schematic
#define ORIG_E1_STEP_PIN -1
#define ORIG_E1_DIR_PIN -1
#define ORIG_E1_ENABLE_PIN -1
#define SDPOWER -1
#define SDSS 25 // from schematic
#define ORIG_SDCARDDETECT -1
#define LED_PIN 13 // from schematic
#define ORIG_FAN_PIN 8 // from schematic
#define ORIG_PS_ON_PIN -1
#define HEATER_0_PIN 10 // schematic: HEATER1 (Extruder)
#define HEATER_1_PIN 9 // schematic: HEATER2 (Heated Bed)
#define HEATER_2_PIN -1
// ANALOG NUMBERING
#define TEMP_0_PIN 13 // schematic: THERM1 (Extruder)
#define TEMP_1_PIN 14 // schematic: THERM2 (Heated Bed)
#define TEMP_2_PIN -1
#define E0_PINS ORIG_E0_STEP_PIN,ORIG_E0_DIR_PIN,ORIG_E0_ENABLE_PIN,
#define E1_PINS ORIG_E1_STEP_PIN,ORIG_E1_DIR_PIN,ORIG_E1_ENABLE_PIN,
// following pins (LCD, ENCODER, SDCARD) reverse engineered from schematic diagram:
#ifdef ULTRA_LCD
#ifdef NEWPANEL
#define LCD_PINS_RS 27 // from schematic
#define LCD_PINS_ENABLE 29 // from schematic
#define LCD_PINS_D4 37 // from schematic
#define LCD_PINS_D5 35 // from schematic
#define LCD_PINS_D6 33 // from schematic
#define LCD_PINS_D7 31 // from schematic
#define BTN_EN1 16 // from schematic
#define BTN_EN2 17 // from schematic
#define BTN_ENC 23 // from schematic
#endif
#endif //ULTRA_LCD
#define SCK_PIN 52 // from schematic
#define MISO_PIN 50 // from schematic
#define MOSI_PIN 51 // from schematic
#define MAX6675_SS 53 // from schematic