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

95 lines
3.3 KiB
C
Raw Normal View History

2017-12-05 00:33:25 -06:00
/**
* Marlin 3D Printer Firmware
2020-02-03 08:00:57 -06:00
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
2017-12-05 00:33:25 -06:00
*
* Based on Sprinter and grbl.
2019-06-27 23:57:50 -05:00
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
2017-12-05 00:33:25 -06: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 00:33:25 -06:00
*
*/
2019-07-04 22:44:12 -05:00
#pragma once
2017-12-05 00:33:25 -06:00
/**
* Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
*
* 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)
*
* Differences from RAMPS v1.4:
* - 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 EXP1/2 pins
2017-12-05 00:33:25 -06:00
*/
#include "env_validate.h"
2017-12-05 00:33:25 -06:00
2019-08-20 19:08:58 -05:00
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"
2017-12-05 00:33:25 -06:00
#define MOSFET_A_PIN 8
#define MOSFET_C_PIN 10
2017-12-05 00:33:25 -06:00
//
2021-09-22 00:19:26 -05:00
// Steppers
2017-12-05 00:33:25 -06:00
//
2021-09-22 00:19:26 -05:00
#define X_CS_PIN -1
#define Y_CS_PIN -1
#define Z_CS_PIN -1
2017-12-05 00:33:25 -06:00
2021-09-22 00:19:26 -05:00
// Swap E0 / E1 on 3DYMY
2020-03-21 21:13:19 -05:00
#define E0_STEP_PIN 36
#define E0_DIR_PIN 34
#define E0_ENABLE_PIN 30
2021-09-22 00:19:26 -05:00
#define E0_CS_PIN -1
2017-12-05 00:33:25 -06:00
2020-03-21 21:13:19 -05:00
#define E1_STEP_PIN 26
#define E1_DIR_PIN 28
#define E1_ENABLE_PIN 24
2021-09-22 00:19:26 -05:00
#define E1_CS_PIN -1
2017-12-05 00:33:25 -06:00
/** 3DYMY Expansion Headers
* ------ ------
* 37 |10 9 | 35 (MISO) 50 |10 9 | 52 (SCK)
* 31 | 8 7 | 41 29 | 8 7 | 53
* 33 6 5 | 23 25 6 5 | 51 (MOSI)
* 42 | 4 3 | 44 49 | 4 3 | 27
* GND | 2 1 | 5V GND | 2 1 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_03_PIN 44
#define EXP1_04_PIN 42
#define EXP1_05_PIN 23
#define EXP1_06_PIN 33
#define EXP1_07_PIN 41
#define EXP1_08_PIN 31
#define EXP1_09_PIN 35
#define EXP1_10_PIN 37
2017-12-05 00:33:25 -06:00
#define EXP2_03_PIN 27
#define EXP2_04_PIN 49
#define EXP2_05_PIN 51
#define EXP2_06_PIN 25
#define EXP2_07_PIN 53
#define EXP2_08_PIN 29
#define EXP2_09_PIN 52
#define EXP2_10_PIN 50
#include "pins_RAMPS.h"