/**
 * Marlin 3D Printer Firmware
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
 *
 * Based on Sprinter and grbl.
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/**
 * MegaTronics v3.0 / v3.1 pin assignments
 */

#ifndef __AVR_ATmega2560__
  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
#endif

#define BOARD_NAME "Alchimies PD1"

// Dx = Ax + 54
#define X_MIN_PIN          69
#define Y_MAX_PIN          67
#define Z_MAX_PIN          68



#define X_MS1_PIN          27
#define X_MS2_PIN          26
#define X_MS3_PIN          25

#define Y_MS1_PIN          49
#define Y_MS2_PIN          46
#define Y_MS3_PIN          47

#define Z_MS1_PIN          34
#define Z_MS2_PIN          33
#define Z_MS3_PIN          32

#define E0_MS1_PIN          40
#define E0_MS2_PIN          41
#define E0_MS3_PIN          38



#define X_STEP_PIN         23
#define X_DIR_PIN          22
#define X_ENABLE_PIN       28

#define Z_STEP_PIN         30
#define Z_DIR_PIN          29
#define Z_ENABLE_PIN       35


#define E0_STEP_PIN        39
#define E0_DIR_PIN         37
#define E0_ENABLE_PIN      43

#define Y_STEP_PIN         44
#define Y_DIR_PIN          42
#define Y_ENABLE_PIN       48

#define TEMP_0_PIN          8   // Analog Input

#define HEATER_0_PIN       16

#define FAN_PIN            18
#define FAN1_PIN           17

#define BEEPER_PIN         14
