2018-04-02 22:11:38 -05:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-04-02 22:11:38 -05:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-27 23:57:50 -05:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-04-02 22:11:38 -05: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-04 22:44:12 -05:00
|
|
|
#pragma once
|
2018-04-02 22:11:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Arduino Mega with RAMPS v1.4 for Anycubic
|
|
|
|
*/
|
|
|
|
|
2019-08-20 19:08:58 -05:00
|
|
|
#define BOARD_INFO_NAME "Anycubic RAMPS 1.4"
|
2018-04-02 22:11:38 -05:00
|
|
|
|
2019-06-22 17:53:45 -05:00
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
|
|
|
#if MB(TRIGORILLA_14_11)
|
|
|
|
#define SERVO0_PIN 5
|
|
|
|
#define SERVO1_PIN 4
|
|
|
|
#define SERVO2_PIN 11
|
|
|
|
#define SERVO3_PIN 6
|
|
|
|
#endif
|
|
|
|
|
2020-01-26 21:08:44 -06:00
|
|
|
//
|
2020-01-31 21:51:59 -06:00
|
|
|
// Custom Limit Switches
|
2020-01-26 21:08:44 -06:00
|
|
|
//
|
2020-01-31 21:51:59 -06:00
|
|
|
//#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
|
|
|
|
#if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
|
|
|
|
#define X_MAX_PIN 43
|
|
|
|
#define Y_MIN_PIN 19
|
|
|
|
#endif
|
2020-01-26 21:08:44 -06:00
|
|
|
|
2018-10-21 03:23:20 -05:00
|
|
|
// Labeled pins
|
|
|
|
#define TRIGORILLA_HEATER_BED_PIN 8
|
|
|
|
#define TRIGORILLA_HEATER_0_PIN 10
|
|
|
|
#define TRIGORILLA_HEATER_1_PIN 45 // Anycubic Kossel: Unused
|
|
|
|
|
|
|
|
#define TRIGORILLA_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
|
|
|
|
#define TRIGORILLA_FAN1_PIN 7 // Anycubic Kossel: Unused
|
|
|
|
#define TRIGORILLA_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
|
|
|
|
|
|
|
|
// Remap MOSFET pins to common usages:
|
|
|
|
|
|
|
|
#define RAMPS_D10_PIN TRIGORILLA_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
|
|
|
|
|
|
|
|
#if HOTENDS > 1 // EEF and EEB
|
|
|
|
#define RAMPS_D9_PIN TRIGORILLA_HEATER_1_PIN
|
2018-09-27 15:06:21 -05:00
|
|
|
#if !TEMP_SENSOR_BED
|
2018-10-21 03:23:20 -05:00
|
|
|
// EEF
|
|
|
|
#define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
|
|
|
|
#else
|
|
|
|
// EEB
|
|
|
|
#define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
|
|
|
|
#define FAN_PIN TRIGORILLA_FAN0_PIN // Override pin 4 in pins_RAMPS.h
|
2018-09-27 15:06:21 -05:00
|
|
|
#endif
|
|
|
|
#elif TEMP_SENSOR_BED
|
2018-10-21 03:23:20 -05:00
|
|
|
// EFB (Anycubic Kossel default)
|
|
|
|
#define RAMPS_D9_PIN TRIGORILLA_FAN0_PIN
|
|
|
|
#define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
|
2018-09-27 15:06:21 -05:00
|
|
|
#else
|
2018-10-21 03:23:20 -05:00
|
|
|
// EFF
|
|
|
|
#define RAMPS_D9_PIN TRIGORILLA_FAN1_PIN
|
|
|
|
#define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
|
2018-09-27 15:06:21 -05:00
|
|
|
#endif
|
2018-09-10 21:25:40 -05:00
|
|
|
|
2018-10-21 03:23:20 -05:00
|
|
|
#if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
|
|
|
|
#define FAN1_PIN TRIGORILLA_FAN1_PIN
|
|
|
|
#endif
|
|
|
|
#define FAN2_PIN TRIGORILLA_FAN2_PIN
|
|
|
|
#define ORIG_E0_AUTO_FAN_PIN TRIGORILLA_FAN2_PIN // Used in Anycubic Kossel example config
|
2018-04-02 22:11:38 -05:00
|
|
|
|
2018-07-03 20:23:14 -05:00
|
|
|
#include "pins_RAMPS.h"
|
2018-09-10 21:25:40 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// AnyCubic made the following changes to 1.1.0-RC8
|
|
|
|
// If these are appropriate for your LCD let us know.
|
|
|
|
//
|
2019-06-27 22:14:43 -05:00
|
|
|
#if 0 && HAS_SPI_LCD
|
2018-09-10 21:25:40 -05:00
|
|
|
|
|
|
|
// LCD Display output pins
|
2019-03-16 23:43:06 -05:00
|
|
|
#if BOTH(NEWPANEL, PANEL_ONE)
|
2018-09-10 21:25:40 -05:00
|
|
|
#undef LCD_PINS_D6
|
|
|
|
#define LCD_PINS_D6 57
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// LCD Display input pins
|
|
|
|
#if ENABLED(NEWPANEL)
|
2019-03-16 23:43:06 -05:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2018-09-10 21:25:40 -05:00
|
|
|
#undef DOGLCD_A0
|
|
|
|
#define DOGLCD_A0 23
|
|
|
|
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
|
|
|
#undef BEEPER_PIN
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
#undef LCD_BACKLIGHT_PIN
|
|
|
|
#define LCD_BACKLIGHT_PIN 67
|
|
|
|
#endif
|
|
|
|
#elif ENABLED(MINIPANEL)
|
|
|
|
#undef BEEPER_PIN
|
|
|
|
#define BEEPER_PIN 33
|
|
|
|
#undef DOGLCD_A0
|
|
|
|
#define DOGLCD_A0 42
|
|
|
|
#endif
|
|
|
|
|
2019-06-27 22:14:43 -05:00
|
|
|
#endif // HAS_SPI_LCD
|