Prusa MINI Firmware overview
pins_TRIGORILLA_14.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 /**
25  * Arduino Mega with RAMPS v1.4 for Anycubic
26  */
27 
28 #define BOARD_INFO_NAME "Anycubic RAMPS 1.4"
29 
30 //
31 // Servos
32 //
33 #if MB(TRIGORILLA_14_11)
34  #define SERVO0_PIN 5
35  #define SERVO1_PIN 4
36  #define SERVO2_PIN 11
37  #define SERVO3_PIN 6
38 #endif
39 
40 // Labeled pins
41 #define TRIGORILLA_HEATER_BED_PIN 8
42 #define TRIGORILLA_HEATER_0_PIN 10
43 #define TRIGORILLA_HEATER_1_PIN 45 // Anycubic Kossel: Unused
44 
45 #define TRIGORILLA_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
46 #define TRIGORILLA_FAN1_PIN 7 // Anycubic Kossel: Unused
47 #define TRIGORILLA_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
48 
49 // Remap MOSFET pins to common usages:
50 
51 #define RAMPS_D10_PIN TRIGORILLA_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
52 
53 #if HOTENDS > 1 // EEF and EEB
54  #define RAMPS_D9_PIN TRIGORILLA_HEATER_1_PIN
55  #if !TEMP_SENSOR_BED
56  // EEF
57  #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
58  #else
59  // EEB
60  #define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
61  #define FAN_PIN TRIGORILLA_FAN0_PIN // Override pin 4 in pins_RAMPS.h
62  #endif
63 #elif TEMP_SENSOR_BED
64  // EFB (Anycubic Kossel default)
65  #define RAMPS_D9_PIN TRIGORILLA_FAN0_PIN
66  #define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
67 #else
68  // EFF
69  #define RAMPS_D9_PIN TRIGORILLA_FAN1_PIN
70  #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
71 #endif
72 
73 #if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
74  #define FAN1_PIN TRIGORILLA_FAN1_PIN
75 #endif
76 #define FAN2_PIN TRIGORILLA_FAN2_PIN
77 #define ORIG_E0_AUTO_FAN_PIN TRIGORILLA_FAN2_PIN // Used in Anycubic Kossel example config
78 
79 #include "pins_RAMPS.h"
80 
81 //
82 // AnyCubic made the following changes to 1.1.0-RC8
83 // If these are appropriate for your LCD let us know.
84 //
85 #if 0 && HAS_SPI_LCD
86 
87  // LCD Display output pins
88  #if BOTH(NEWPANEL, PANEL_ONE)
89  #undef LCD_PINS_D6
90  #define LCD_PINS_D6 57
91  #endif
92 
93  // LCD Display input pins
94  #if ENABLED(NEWPANEL)
95  #if ANY(VIKI2, miniVIKI)
96  #undef DOGLCD_A0
97  #define DOGLCD_A0 23
98  #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
99  #undef BEEPER_PIN
100  #define BEEPER_PIN 33
101  #undef LCD_BACKLIGHT_PIN
102  #define LCD_BACKLIGHT_PIN 67
103  #endif
104  #elif ENABLED(MINIPANEL)
105  #undef BEEPER_PIN
106  #define BEEPER_PIN 33
107  #undef DOGLCD_A0
108  #define DOGLCD_A0 42
109  #endif
110 
111 #endif // HAS_SPI_LCD
pins_RAMPS.h