2017-07-18 23:29:06 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2017-07-18 23:29:06 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2017-07-18 23:29:06 +00: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
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 03:44:12 +00:00
|
|
|
#pragma once
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Arduino Mega or Due with RAMPS Duo pin assignments
|
|
|
|
*
|
|
|
|
* Applies to the following boards:
|
|
|
|
*
|
|
|
|
* RAMPS_DUO_EFB (Hotend, Fan, Bed)
|
|
|
|
* RAMPS_DUO_EEB (Hotend0, Hotend1, Bed)
|
|
|
|
* RAMPS_DUO_EFF (Hotend, Fan0, Fan1)
|
|
|
|
* RAMPS_DUO_EEF (Hotend0, Hotend1, Fan)
|
|
|
|
* RAMPS_DUO_SF (Spindle, Controller Fan)
|
|
|
|
*
|
|
|
|
* Differences between
|
|
|
|
* RAMPS_14 | RAMPS_DUO
|
|
|
|
* A9/D63 | A12/D66
|
|
|
|
* A10/D64 | A13/D67
|
|
|
|
* A11/D65 | A14/D68
|
|
|
|
* A12/D66 | A15/D69
|
|
|
|
* A13 | A9
|
|
|
|
* A14 | A10
|
|
|
|
* A15 | A11
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if !defined(__SAM3X8E__) && !defined(__AVR_ATmega2560__)
|
2018-11-09 03:57:15 +00:00
|
|
|
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
2017-07-18 23:29:06 +00:00
|
|
|
#endif
|
|
|
|
|
2018-11-14 06:23:18 +00:00
|
|
|
#define BOARD_NAME "RAMPS Duo"
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
#define IS_RAMPS_DUO
|
|
|
|
#include "pins_RAMPS.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
|
|
|
#undef TEMP_0_PIN
|
|
|
|
#define TEMP_0_PIN 9 // Analog Input
|
|
|
|
|
|
|
|
#undef TEMP_1_PIN
|
|
|
|
#define TEMP_1_PIN 11 // Analog Input
|
|
|
|
|
|
|
|
#undef TEMP_BED_PIN
|
|
|
|
#define TEMP_BED_PIN 10 // Analog Input
|
|
|
|
|
|
|
|
// SPI for Max6675 or Max31855 Thermocouple
|
2018-11-17 00:20:33 +00:00
|
|
|
#undef MAX6675_SS_PIN
|
2017-07-18 23:29:06 +00:00
|
|
|
#if DISABLED(SDSUPPORT)
|
2019-07-11 09:51:47 +00:00
|
|
|
#define MAX6675_SS_PIN 69 // Don't use 53 if there is even the remote possibility of using Display/SD card
|
2017-07-18 23:29:06 +00:00
|
|
|
#else
|
2019-07-11 09:51:47 +00:00
|
|
|
#define MAX6675_SS_PIN 69 // Don't use 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
|
2017-07-18 23:29:06 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
2019-06-28 03:14:43 +00:00
|
|
|
#if HAS_SPI_LCD
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2019-03-17 04:43:06 +00:00
|
|
|
#if BOTH(NEWPANEL, PANEL_ONE)
|
2017-07-18 23:29:06 +00:00
|
|
|
#undef LCD_PINS_D4
|
|
|
|
#define LCD_PINS_D4 68
|
|
|
|
|
|
|
|
#undef LCD_PINS_D5
|
|
|
|
#define LCD_PINS_D5 69
|
|
|
|
|
|
|
|
#undef LCD_PINS_D7
|
|
|
|
#define LCD_PINS_D7 67
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if ENABLED(NEWPANEL)
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#undef BTN_EN1
|
|
|
|
#define BTN_EN1 67
|
|
|
|
|
|
|
|
#undef BTN_ENC
|
|
|
|
#define BTN_ENC 66
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#elif ENABLED(MINIPANEL)
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#undef DOGLCD_CS
|
|
|
|
#define DOGLCD_CS 69
|
|
|
|
|
|
|
|
#undef LCD_BACKLIGHT_PIN
|
2018-03-28 17:51:59 +00:00
|
|
|
#define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
#undef KILL_PIN
|
|
|
|
#define KILL_PIN 67
|
|
|
|
|
|
|
|
#undef BTN_EN2
|
|
|
|
#define BTN_EN2 66
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#else
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#if ENABLED(REPRAPWORLD_KEYPAD)
|
|
|
|
#undef BTN_EN1
|
2018-03-28 17:51:59 +00:00
|
|
|
#define BTN_EN1 67 // encoder
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
#undef BTN_ENC
|
2018-03-28 17:51:59 +00:00
|
|
|
#define BTN_ENC 66 // enter button
|
2017-07-18 23:29:06 +00:00
|
|
|
#elif ENABLED(PANEL_ONE)
|
|
|
|
#undef BTN_EN2
|
2018-03-28 17:51:59 +00:00
|
|
|
#define BTN_EN2 66 // AUX2 PIN 4
|
2017-07-18 23:29:06 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2017-07-18 23:29:06 +00:00
|
|
|
#endif // NEWPANEL
|
2018-02-18 03:24:04 +00:00
|
|
|
|
2019-06-28 03:14:43 +00:00
|
|
|
#endif // HAS_SPI_LCD
|