1 |
ron |
1 |
/**
|
|
|
2 |
* Marlin 3D Printer Firmware
|
|
|
3 |
* Copyright (C) 2016 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 |
|
|
|
23 |
/**
|
|
|
24 |
* Arduino Mega with RAMPS v1.4 for Anycubic
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
#ifndef BOARD_NAME
|
|
|
28 |
#define BOARD_NAME "Anycubic RAMPS 1.4"
|
|
|
29 |
#endif
|
|
|
30 |
|
|
|
31 |
#define IS_RAMPS_EFB
|
|
|
32 |
|
|
|
33 |
// FAN0 / D9 - Typically used for the part fan on Anycubic Delta devices
|
|
|
34 |
#define FAN_PIN 9
|
|
|
35 |
|
|
|
36 |
// FAN1 / D7 - Typically unused, can be allocated as Case Fan
|
|
|
37 |
|
|
|
38 |
// FAN2 / D44 - Typical Extruder Fan on Anycubic Delta devices
|
|
|
39 |
#define FAN2_PIN 44
|
|
|
40 |
#define ORIG_E0_AUTO_FAN_PIN 44
|
|
|
41 |
|
|
|
42 |
#include "pins_RAMPS.h"
|
|
|
43 |
|
|
|
44 |
// TODO 1.4 boards do have an E1 stepper driver. However the pin definitions
|
|
|
45 |
// from pins_RAMPS.h are incorrect for this board. e.g., Pin 44 is the Extruder fan.
|
|
|
46 |
#undef E1_STEP_PIN
|
|
|
47 |
#undef E1_DIR_PIN
|
|
|
48 |
#undef E1_ENABLE_PIN
|
|
|
49 |
#undef E1_CS_PIN
|
|
|
50 |
|
|
|
51 |
//
|
|
|
52 |
// AnyCubic made the following changes to 1.1.0-RC8
|
|
|
53 |
// If these are appropriate for your LCD let us know.
|
|
|
54 |
//
|
|
|
55 |
#if 0 && ENABLED(ULTRA_LCD)
|
|
|
56 |
|
|
|
57 |
// LCD Display output pins
|
|
|
58 |
#if ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
|
|
|
59 |
#undef LCD_PINS_D6
|
|
|
60 |
#define LCD_PINS_D6 57
|
|
|
61 |
#endif
|
|
|
62 |
|
|
|
63 |
// LCD Display input pins
|
|
|
64 |
#if ENABLED(NEWPANEL)
|
|
|
65 |
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
|
66 |
#undef DOGLCD_A0
|
|
|
67 |
#define DOGLCD_A0 23
|
|
|
68 |
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
|
|
69 |
#undef BEEPER_PIN
|
|
|
70 |
#define BEEPER_PIN 33
|
|
|
71 |
#undef LCD_BACKLIGHT_PIN
|
|
|
72 |
#define LCD_BACKLIGHT_PIN 67
|
|
|
73 |
#endif
|
|
|
74 |
#elif ENABLED(MINIPANEL)
|
|
|
75 |
#undef BEEPER_PIN
|
|
|
76 |
#define BEEPER_PIN 33
|
|
|
77 |
#undef DOGLCD_A0
|
|
|
78 |
#define DOGLCD_A0 42
|
|
|
79 |
#endif
|
|
|
80 |
|
|
|
81 |
#endif // ULTRA_LCD
|