Firmware2/Marlin/src/pins/ramps/pins_RAMPS_PLUS.h

87 lines
2.7 KiB
C
Raw Normal View History

2017-12-05 07:33:25 +01:00
/**
* Marlin 3D Printer Firmware
2020-02-03 15:00:57 +01:00
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
2017-12-05 07:33:25 +01:00
*
* Based on Sprinter and grbl.
2019-06-28 06:57:50 +02:00
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
2017-12-05 07:33:25 +01:00
*
* 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
2020-07-23 05:20:14 +02:00
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2017-12-05 07:33:25 +01:00
*
*/
2019-07-05 05:44:12 +02:00
#pragma once
2017-12-05 07:33:25 +01:00
/**
* Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
* The differences to the RAMPS v1.4 are:
* - Swap heater E0 with E1
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
* - Change pins 16->42, 17->44 and 29->53 used for display.
*
* Applies to the following boards:
*
* RAMPS_PLUS_EFB (Extruder, Fan, Bed)
* RAMPS_PLUS_EEB (Extruder, Extruder, Bed)
* RAMPS_PLUS_EFF (Extruder, Fan, Fan)
* RAMPS_PLUS_EEF (Extruder, Extruder, Fan)
* RAMPS_PLUS_SF (Spindle, Controller Fan)
*
*/
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
2017-12-05 07:33:25 +01:00
#endif
2019-08-21 02:08:58 +02:00
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"
2017-12-05 07:33:25 +01:00
2020-03-22 03:13:19 +01:00
#define RAMPS_D8_PIN 10
#define RAMPS_D10_PIN 8
2017-12-05 07:33:25 +01:00
#include "pins_RAMPS.h"
//
// Steppers - Swap E0 / E1 on 3DYMY
//
#undef E0_STEP_PIN
#undef E0_DIR_PIN
#undef E0_ENABLE_PIN
#undef E1_STEP_PIN
#undef E1_DIR_PIN
#undef E1_ENABLE_PIN
2020-03-22 03:13:19 +01:00
#define E0_STEP_PIN 36
#define E0_DIR_PIN 34
#define E0_ENABLE_PIN 30
2017-12-05 07:33:25 +01:00
2020-03-22 03:13:19 +01:00
#define E1_STEP_PIN 26
#define E1_DIR_PIN 28
#define E1_ENABLE_PIN 24
2017-12-05 07:33:25 +01:00
#undef X_CS_PIN
#undef Y_CS_PIN
#undef Z_CS_PIN
#undef E0_CS_PIN
#undef E1_CS_PIN
2019-03-17 11:50:06 +01:00
#if ENABLED(ULTRA_LCD, REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(NEWPANEL, PANEL_ONE)
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
2017-12-05 07:33:25 +01:00
#undef LCD_PINS_RS
2020-03-22 03:13:19 +01:00
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
2017-12-05 07:33:25 +01:00
#undef LCD_PINS_ENABLE
2020-03-22 03:13:19 +01:00
#define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
2017-12-05 07:33:25 +01:00
#endif
#undef LCD_PINS_D7
2020-03-22 03:13:19 +01:00
#define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
2017-12-05 07:33:25 +01:00
#endif