|
| 1 | +/** |
| 2 | + * Marlin 3D Printer Firmware |
| 3 | + * Copyright (c) 2022 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 <https://www.gnu.org/licenses/>. |
| 20 | + * |
| 21 | + */ |
| 22 | +#pragma once |
| 23 | + |
| 24 | +/** |
| 25 | + * Tenlog pin assignments |
| 26 | + */ |
| 27 | + |
| 28 | +#define REQUIRE_MEGA2560 |
| 29 | +#include "env_validate.h" |
| 30 | + |
| 31 | +#if HOTENDS > 2 || E_STEPPERS > 2 |
| 32 | + #error "Tenlog supports up to 2 hotends / E steppers." |
| 33 | +#endif |
| 34 | + |
| 35 | +#define BOARD_INFO_NAME "Tenlog MB1 V2.3" |
| 36 | +#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME |
| 37 | + |
| 38 | +// |
| 39 | +// Limit Switches |
| 40 | +// |
| 41 | +#define X_MIN_PIN 3 |
| 42 | +#define X_MAX_PIN 2 |
| 43 | +#define Y_MIN_PIN 14 |
| 44 | +//#define Y_MAX_PIN 15 // Connected to "DJ" plug on extruder heads |
| 45 | +#define Z_MIN_PIN 18 |
| 46 | +#if ENABLED(BLTOUCH) |
| 47 | + #define SERVO0_PIN 19 |
| 48 | +#else |
| 49 | + #define Z_MAX_PIN 19 |
| 50 | +#endif |
| 51 | + |
| 52 | +// |
| 53 | +// Steppers |
| 54 | +// |
| 55 | +#define X_STEP_PIN 54 |
| 56 | +#define X_DIR_PIN 55 |
| 57 | +#define X_ENABLE_PIN 38 |
| 58 | + |
| 59 | +#define X2_STEP_PIN 36 |
| 60 | +#define X2_DIR_PIN 34 |
| 61 | +#define X2_ENABLE_PIN 30 |
| 62 | + |
| 63 | +#define Y_STEP_PIN 60 |
| 64 | +#define Y_DIR_PIN 61 |
| 65 | +#define Y_ENABLE_PIN 56 |
| 66 | + |
| 67 | +#define Z_STEP_PIN 46 |
| 68 | +#define Z_DIR_PIN 48 |
| 69 | +#define Z_ENABLE_PIN 62 |
| 70 | + |
| 71 | +#define Z2_STEP_PIN 65 |
| 72 | +#define Z2_DIR_PIN 66 |
| 73 | +#define Z2_ENABLE_PIN 64 |
| 74 | + |
| 75 | +#define E0_STEP_PIN 57 |
| 76 | +#define E0_DIR_PIN 58 |
| 77 | +#define E0_ENABLE_PIN 59 |
| 78 | + |
| 79 | +#define E1_STEP_PIN 26 |
| 80 | +#define E1_DIR_PIN 28 |
| 81 | +#define E1_ENABLE_PIN 24 |
| 82 | + |
| 83 | +// |
| 84 | +// Temperature Sensors |
| 85 | +// |
| 86 | +#define TEMP_0_PIN 15 // Analog Input |
| 87 | +#define TEMP_1_PIN 13 // Analog Input |
| 88 | +#define TEMP_BED_PIN 14 // Analog Input |
| 89 | + |
| 90 | +// |
| 91 | +// Heaters / Fans |
| 92 | +// |
| 93 | +#define HEATER_0_PIN 11 |
| 94 | +#define HEATER_1_PIN 10 |
| 95 | +#define HEATER_BED_PIN 8 |
| 96 | + |
| 97 | +#define FAN_PIN 9 |
| 98 | +#define FAN2_PIN 5 // Normally this would be a servo pin |
| 99 | + |
| 100 | +//#define NUM_RUNOUT_SENSORS 0 |
| 101 | +#define FIL_RUNOUT_PIN 15 |
| 102 | +//#define FIL_RUNOUT2_PIN 21 |
| 103 | + |
| 104 | +// |
| 105 | +// PSU and Powerloss Recovery |
| 106 | +// |
| 107 | +#if ENABLED(PSU_CONTROL) |
| 108 | + #define PS_ON_PIN 40 // The M80/M81 PSU pin for boards v2.1-2.3 |
| 109 | +#endif |
| 110 | + |
| 111 | +// |
| 112 | +// Misc. Functions |
| 113 | +// |
| 114 | +//#define CASE_LIGHT_PIN 5 |
| 115 | +//#ifndef LED_PIN |
| 116 | +// #define LED_PIN 13 |
| 117 | +//#endif |
| 118 | + |
| 119 | +#if HAS_CUTTER |
| 120 | + //#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM |
| 121 | + //#define SPINDLE_LASER_ENA_PIN 4 // Pullup! |
| 122 | +#endif |
| 123 | + |
| 124 | +// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector |
| 125 | +//#define FILWIDTH_PIN 5 // Analog Input |
| 126 | + |
| 127 | +#define SDSS 53 |
| 128 | +#define SD_DETECT_PIN 49 |
| 129 | + |
| 130 | +// |
| 131 | +// LCD / Controller |
| 132 | +// |
| 133 | + |
| 134 | +//#if IS_RRD_SC |
| 135 | + |
| 136 | +//#ifndef BEEPER_PIN |
| 137 | +// #define BEEPER_PIN -1 |
| 138 | +//#endif |
| 139 | + |
| 140 | +#define LCD_PINS_RS -1 |
| 141 | +#define LCD_PINS_ENABLE -1 |
| 142 | +#define LCD_PINS_D4 -1 |
| 143 | +#define LCD_PINS_D5 -1 |
| 144 | +#define LCD_PINS_D6 -1 |
| 145 | +#define LCD_PINS_D7 -1 |
| 146 | + |
| 147 | +//#define BTN_EN1 31 |
| 148 | +//#define BTN_EN2 33 |
| 149 | +//#define BTN_ENC 35 |
| 150 | + |
| 151 | +//#ifndef KILL_PIN |
| 152 | +// #define KILL_PIN 41 |
| 153 | +//#endif |
| 154 | + |
| 155 | +//#endif // IS_RRD_SC |
0 commit comments