|
| 1 | +/** |
| 2 | + * Marlin 3D Printer Firmware |
| 3 | + * Copyright (c) 2023 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 | + * Panowin V?.? as found in the Panowin F1 (MEGA2560) board pin assignments |
| 26 | + * |
| 27 | + * Ported from https://github.com/sambuls/MarlinOnTrinus |
| 28 | + * Board photo https://imgur.com/a/xvol1Bo |
| 29 | + */ |
| 30 | + |
| 31 | +#include "env_validate.h" |
| 32 | + |
| 33 | +#ifndef BOARD_NAME |
| 34 | + #define BOARD_NAME "Panowin Cutlass" |
| 35 | +#endif |
| 36 | + |
| 37 | +#ifndef DEFAULT_MACHINE_NAME |
| 38 | + #define DEFAULT_MACHINE_NAME "Panowin F1" |
| 39 | +#endif |
| 40 | + |
| 41 | +// |
| 42 | +// Limit Switches |
| 43 | +// |
| 44 | +#define X_STOP_PIN 71 // G3 |
| 45 | +#define Y_STOP_PIN 85 // H7 |
| 46 | +#define Z_STOP_PIN 13 // B7 |
| 47 | + |
| 48 | +// |
| 49 | +// Steppers |
| 50 | +// |
| 51 | +#define X_STEP_PIN 38 // D7 |
| 52 | +#define X_DIR_PIN 83 |
| 53 | +#define X_ENABLE_PIN 82 |
| 54 | + |
| 55 | +#define Y_STEP_PIN 37 |
| 56 | +#define Y_DIR_PIN 40 |
| 57 | +#define Y_ENABLE_PIN 41 |
| 58 | + |
| 59 | +#define Z_STEP_PIN 30 // C7 |
| 60 | +#define Z_DIR_PIN 32 // C5 |
| 61 | +#define Z_ENABLE_PIN 34 // C3 |
| 62 | + |
| 63 | +#define E0_STEP_PIN 42 |
| 64 | +#define E0_DIR_PIN 43 |
| 65 | +#define E0_ENABLE_PIN 44 |
| 66 | + |
| 67 | +// Microstepping mode pins |
| 68 | +#define X_MS1_PIN 19 // D2 |
| 69 | +#define X_MS2_PIN 18 // D3 |
| 70 | +#define X_MS3_PIN 81 // D4 |
| 71 | + |
| 72 | +#define Y_MS1_PIN 19 // D2 |
| 73 | +#define Y_MS2_PIN 18 // D3 |
| 74 | +#define Y_MS3_PIN 81 // D4 |
| 75 | + |
| 76 | +#define Z_MS1_PIN 73 // J3 |
| 77 | +#define Z_MS2_PIN 75 // J4 |
| 78 | +#define Z_MS3_PIN 76 // J5 |
| 79 | + |
| 80 | +#define E0_MS1_PIN 46 // L3 |
| 81 | +#define E0_MS2_PIN 47 // L2 |
| 82 | +#define E0_MS3_PIN 45 // L4 |
| 83 | + |
| 84 | +// |
| 85 | +// Temperature Sensors |
| 86 | +// |
| 87 | +#define TEMP_0_PIN 12 // Analog Input |
| 88 | +#define TEMP_BED_PIN 14 // Analog Input |
| 89 | + |
| 90 | +// |
| 91 | +// Heaters / Fans |
| 92 | +// |
| 93 | +#define HEATER_0_PIN 9 // H6 |
| 94 | +#define HEATER_BED_PIN 8 |
| 95 | +#define FAN0_PIN 62 // K0 |
| 96 | +#define FAN_SOFT_PWM_REQUIRED |
| 97 | + |
| 98 | +// |
| 99 | +// M3/M4/M5 - Spindle/Laser Control |
| 100 | +// |
| 101 | +#if HAS_CUTTER |
| 102 | + #define SPINDLE_LASER_ENA_PIN 74 // J7 |
| 103 | +#endif |
| 104 | + |
| 105 | +// |
| 106 | +// Serial LCD |
| 107 | +// |
| 108 | +#if LCD_NEEDS_SERIAL_PORT && !defined(LCD_SERIAL_PORT) |
| 109 | + #define LCD_SERIAL_PORT 2 // D16 H1 (TX2), D17 H0 (RX2) |
| 110 | +#endif |
| 111 | + |
| 112 | +// |
| 113 | +// SD Card |
| 114 | +// |
| 115 | +#define SD_DETECT_PIN 28 // A6 Onboard SD |
| 116 | + |
| 117 | +// |
| 118 | +// Misc. Functions |
| 119 | +// |
| 120 | +#define BEEPER_PIN 24 // A2 |
| 121 | + |
| 122 | +// |
| 123 | +// Onboard (bright!) RGB LED |
| 124 | +// |
| 125 | +#ifndef RGB_LED_R_PIN |
| 126 | + #define RGB_LED_R_PIN 64 // K2 |
| 127 | +#endif |
| 128 | +#ifndef RGB_LED_G_PIN |
| 129 | + #define RGB_LED_G_PIN 65 // K3 |
| 130 | +#endif |
| 131 | +#ifndef RGB_LED_B_PIN |
| 132 | + #define RGB_LED_B_PIN 63 // K1 |
| 133 | +#endif |
0 commit comments