2018-04-03 03:11:38 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 14:00:57 +00:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-04-03 03:11:38 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-04-03 03:11:38 +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
|
2020-07-23 03:20:14 +00:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2018-04-03 03:11:38 +00:00
|
|
|
*
|
|
|
|
*/
|
2019-07-05 03:44:12 +00:00
|
|
|
#pragma once
|
2018-04-03 03:11:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Arduino Mega with RAMPS v1.4 for Anycubic
|
|
|
|
*/
|
|
|
|
|
2019-08-21 00:08:58 +00:00
|
|
|
#define BOARD_INFO_NAME "Anycubic RAMPS 1.4"
|
2018-04-03 03:11:38 +00:00
|
|
|
|
2020-08-06 10:38:18 +00:00
|
|
|
// Board labeled pins:
|
2020-07-17 06:07:09 +00:00
|
|
|
|
2020-03-31 19:42:32 +00:00
|
|
|
#define TG_HEATER_BED_PIN 8
|
|
|
|
#define TG_HEATER_0_PIN 10
|
|
|
|
#define TG_HEATER_1_PIN 45 // Anycubic Kossel: Unused
|
2018-10-21 08:23:20 +00:00
|
|
|
|
2020-03-31 19:42:32 +00:00
|
|
|
#define TG_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
|
|
|
|
#define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
|
|
|
|
#define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
|
2018-10-21 08:23:20 +00:00
|
|
|
|
2020-08-06 10:38:18 +00: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-07-17 06:07:09 +00:00
|
|
|
|
2018-10-21 08:23:20 +00:00
|
|
|
// Remap MOSFET pins to common usages:
|
|
|
|
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D10_PIN TG_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
|
2018-10-21 08:23:20 +00:00
|
|
|
|
2020-05-22 07:02:03 +00:00
|
|
|
#if HAS_MULTI_HOTEND // EEF and EEB
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D9_PIN TG_HEATER_1_PIN
|
2018-09-27 20:06:21 +00:00
|
|
|
#if !TEMP_SENSOR_BED
|
2018-10-21 08:23:20 +00:00
|
|
|
// EEF
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D8_PIN TG_FAN0_PIN
|
2018-10-21 08:23:20 +00:00
|
|
|
#else
|
|
|
|
// EEB
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
|
|
|
|
#define FAN_PIN TG_FAN0_PIN // Override pin 4 in pins_RAMPS.h
|
2018-09-27 20:06:21 +00:00
|
|
|
#endif
|
|
|
|
#elif TEMP_SENSOR_BED
|
2018-10-21 08:23:20 +00:00
|
|
|
// EFB (Anycubic Kossel default)
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D9_PIN TG_FAN0_PIN
|
2020-09-01 22:05:52 +00:00
|
|
|
#if ENABLED(ANYCUBIC_LCD_CHIRON)
|
2020-08-06 10:38:18 +00:00
|
|
|
#define RAMPS_D8_PIN TG_HEATER_1_PIN // Heated bed is connected to HEATER1 output
|
|
|
|
#else
|
|
|
|
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
|
|
|
|
#endif
|
2018-09-27 20:06:21 +00:00
|
|
|
#else
|
2018-10-21 08:23:20 +00:00
|
|
|
// EFF
|
2020-03-31 19:42:32 +00:00
|
|
|
#define RAMPS_D9_PIN TG_FAN1_PIN
|
|
|
|
#define RAMPS_D8_PIN TG_FAN0_PIN
|
2018-09-27 20:06:21 +00:00
|
|
|
#endif
|
2018-09-11 02:25:40 +00:00
|
|
|
|
2020-05-22 07:02:03 +00:00
|
|
|
#if HAS_MULTI_HOTEND || TEMP_SENSOR_BED // EEF, EEB, EFB
|
2020-03-31 19:42:32 +00:00
|
|
|
#define FAN1_PIN TG_FAN1_PIN
|
2018-10-21 08:23:20 +00:00
|
|
|
#endif
|
2020-03-31 19:42:32 +00:00
|
|
|
#define FAN2_PIN TG_FAN2_PIN
|
2020-04-16 08:24:41 +00:00
|
|
|
|
|
|
|
#ifndef E0_AUTO_FAN_PIN
|
|
|
|
#define E0_AUTO_FAN_PIN TG_FAN2_PIN // Used in Anycubic Kossel example config
|
|
|
|
#endif
|
2018-04-03 03:11:38 +00:00
|
|
|
|
2020-09-01 22:05:52 +00:00
|
|
|
#if ENABLED(ANYCUBIC_LCD_I3MEGA)
|
2020-08-06 10:38:18 +00:00
|
|
|
#define CONTROLLER_FAN_PIN TG_FAN1_PIN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// AnyCubic standard pin mappings
|
|
|
|
//
|
|
|
|
// On most printers, endstops are NOT all wired to the appropriate pins on the Trigorilla board.
|
|
|
|
// For instance, on a Chiron, Y axis goes to an aux connector.
|
|
|
|
// There are also other things that have been wired in creative ways.
|
|
|
|
// To enable PIN definitions for a specific printer model, #define the appropriate symbol after
|
|
|
|
// MOTHERBOARD in Configuration.h
|
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
|
|
|
//#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
|
|
|
|
|
|
|
|
#if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
|
|
|
|
#define X_MAX_PIN 43
|
|
|
|
#define Y_STOP_PIN 19
|
2020-09-01 22:05:52 +00:00
|
|
|
#elif EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
|
2020-08-06 10:38:18 +00:00
|
|
|
#define Y_STOP_PIN 42
|
|
|
|
#define Z2_MIN_PIN 43
|
|
|
|
#ifndef Z_MIN_PROBE_PIN
|
|
|
|
#define Z_MIN_PROBE_PIN 2
|
|
|
|
#endif
|
|
|
|
#ifndef FIL_RUNOUT_PIN
|
2020-09-01 22:05:52 +00:00
|
|
|
#if ENABLED(ANYCUBIC_LCD_CHIRON)
|
2020-08-06 10:38:18 +00:00
|
|
|
#define FIL_RUNOUT_PIN 33
|
|
|
|
#else
|
|
|
|
#define FIL_RUNOUT_PIN 19
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define BEEPER_PIN 31
|
|
|
|
#define SD_DETECT_PIN 49
|
|
|
|
#endif
|
|
|
|
|
2018-07-04 01:23:14 +00:00
|
|
|
#include "pins_RAMPS.h"
|
2018-09-11 02:25:40 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// AnyCubic made the following changes to 1.1.0-RC8
|
|
|
|
// If these are appropriate for your LCD let us know.
|
|
|
|
//
|
2020-09-28 06:13:27 +00:00
|
|
|
#if 0 && HAS_WIRED_LCD
|
2018-09-11 02:25:40 +00:00
|
|
|
|
|
|
|
// LCD Display output pins
|
2020-10-15 08:00:27 +00:00
|
|
|
#if BOTH(IS_NEWPANEL, PANEL_ONE)
|
2018-09-11 02:25:40 +00:00
|
|
|
#undef LCD_PINS_D6
|
2020-03-22 02:13:19 +00:00
|
|
|
#define LCD_PINS_D6 57
|
2018-09-11 02:25:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// LCD Display input pins
|
2020-10-15 08:00:27 +00:00
|
|
|
#if IS_NEWPANEL
|
2019-03-17 04:43:06 +00:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2018-09-11 02:25:40 +00:00
|
|
|
#undef DOGLCD_A0
|
2020-03-22 02:13:19 +00:00
|
|
|
#define DOGLCD_A0 23
|
2018-09-11 02:25:40 +00:00
|
|
|
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
|
|
|
#undef BEEPER_PIN
|
2020-03-22 02:13:19 +00:00
|
|
|
#define BEEPER_PIN 33
|
2018-09-11 02:25:40 +00:00
|
|
|
#undef LCD_BACKLIGHT_PIN
|
2020-03-22 02:13:19 +00:00
|
|
|
#define LCD_BACKLIGHT_PIN 67
|
2018-09-11 02:25:40 +00:00
|
|
|
#endif
|
|
|
|
#elif ENABLED(MINIPANEL)
|
|
|
|
#undef BEEPER_PIN
|
2020-03-22 02:13:19 +00:00
|
|
|
#define BEEPER_PIN 33
|
2018-09-11 02:25:40 +00:00
|
|
|
#undef DOGLCD_A0
|
2020-03-22 02:13:19 +00:00
|
|
|
#define DOGLCD_A0 42
|
2018-09-11 02:25:40 +00:00
|
|
|
#endif
|
|
|
|
|
2020-09-28 06:13:27 +00:00
|
|
|
#endif // HAS_WIRED_LCD
|