Prusa MINI Firmware overview
pins_REMRAM_V1.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 #ifndef STM32F7xx
25  #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
26 #endif
27 
28 #define BOARD_INFO_NAME "RemRam v1"
29 #define DEFAULT_MACHINE_NAME "RemRam"
30 
31 #define SRAM_EEPROM_EMULATION // Emulate the EEPROM using Backup SRAM
32 
33 #if HOTENDS > 1 || E_STEPPERS > 1
34  #error "RemRam supports only one hotend / E-stepper."
35 #endif
36 
37 //
38 // Limit Switches
39 //
40 #if DISABLED(SENSORLESS_HOMING)
41  #define X_MIN_PIN 58
42  #define X_MAX_PIN 59
43  #define Y_MIN_PIN 60
44  #define Y_MAX_PIN 61
45  #define Z_MIN_PIN 62
46  #define Z_MAX_PIN 63
47 #else
48  #define X_STOP_PIN 36
49  #define Y_STOP_PIN 39
50  #define Z_MIN_PIN 62
51  #define Z_MAX_PIN 42
52 #endif
53 
54 //
55 // Z Probe (when not Z_MIN_PIN)
56 //
57 #ifndef Z_MIN_PROBE_PIN
58  #define Z_MIN_PROBE_PIN 26 // EXT_D1
59 #endif
60 
61 //
62 // Steppers
63 //
64 #define X_STEP_PIN 22
65 #define X_DIR_PIN 35
66 #define X_ENABLE_PIN 34
67 #define X_CS_PIN 14
68 
69 #define Y_STEP_PIN 23
70 #define Y_DIR_PIN 38
71 #define Y_ENABLE_PIN 37
72 #define Y_CS_PIN 15
73 
74 #define Z_STEP_PIN 24
75 #define Z_DIR_PIN 41
76 #define Z_ENABLE_PIN 40
77 #define Z_CS_PIN 16
78 
79 #define E0_STEP_PIN 25
80 #define E0_DIR_PIN 44
81 #define E0_ENABLE_PIN 43
82 #define E0_CS_PIN 10
83 
84 //
85 // Temperature Sensors
86 //
87 #define TEMP_0_PIN 64 // THERM_1
88 #define TEMP_1_PIN 65 // THERM_2
89 #define TEMP_BED_PIN 66 // THERM_3
90 
91 //
92 // Heaters / Fans
93 //
94 #define HEATER_0_PIN 33
95 #define HEATER_BED_PIN 31
96 
97 #ifndef FAN_PIN
98  #define FAN_PIN 30 // "FAN1"
99 #endif
100 #define FAN1_PIN 32 // "FAN2"
101 
102 #define ORIG_E0_AUTO_FAN_PIN 32 // Use this by NOT overriding E0_AUTO_FAN_PIN
103 
104 //
105 // Servos
106 //
107 #define SERVO0_PIN 26 // PWM_EXT1
108 #define SERVO1_PIN 27 // PWM_EXT2
109 
110 #define SDSS 57 // Onboard SD card reader
111 //#define SDSS 9 // LCD SD card reader
112 #define LED_PIN 21 // STATUS_LED
113 
114 //
115 // LCD / Controller
116 //
117 #define SD_DETECT_PIN 56 // SD_CARD_DET
118 #define BEEPER_PIN 46 // LCD_BEEPER
119 #define LCD_PINS_RS 49 // LCD_RS
120 #define LCD_PINS_ENABLE 48 // LCD_EN
121 #define LCD_PINS_D4 50 // LCD_D4
122 #define LCD_PINS_D5 51 // LCD_D5
123 #define LCD_PINS_D6 52 // LCD_D6
124 #define LCD_PINS_D7 53 // LCD_D7
125 #define BTN_EN1 54 // BTN_EN1
126 #define BTN_EN2 55 // BTN_EN2
127 #define BTN_ENC 47 // BTN_ENC
128 
129 //
130 // Timers
131 //
132 
133 #define STEP_TIMER 2