Prusa MINI Firmware overview
pins_MORPHEUS.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  * 2017 Victor Perez Marlin for stm32f1 test
26  * 2018 Modified by Pablo Crespo for Morpheus Board (https://github.com/pscrespo/Morpheus-STM32)
27  */
28 
29 /**
30  * MORPHEUS Board pin assignments
31  */
32 
33 #ifndef __STM32F1__
34  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
35 #endif
36 
37 #define BOARD_INFO_NAME "Bluepill based board"
38 
39 //
40 // Limit Switches
41 //
42 #define X_MIN_PIN PB14
43 #define Y_MIN_PIN PB13
44 #define Z_MIN_PIN PB12
45 
46 //
47 // Z Probe (when not Z_MIN_PIN)
48 //
49 #ifndef Z_MIN_PROBE_PIN
50  #define Z_MIN_PROBE_PIN PB9
51 #endif
52 
53 //
54 // Steppers
55 //
56 // X & Y enable are the same
57 #define X_STEP_PIN PB7
58 #define X_DIR_PIN PB6
59 #define X_ENABLE_PIN PB8
60 
61 #define Y_STEP_PIN PB5
62 #define Y_DIR_PIN PB4
63 #define Y_ENABLE_PIN PB8
64 
65 #define Z_STEP_PIN PA15
66 #define Z_DIR_PIN PA10
67 #define Z_ENABLE_PIN PB3
68 
69 #define E0_STEP_PIN PA8
70 #define E0_DIR_PIN PB15
71 #define E0_ENABLE_PIN PA9
72 
73 //
74 // Temperature Sensors
75 //
76 #define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
77 #define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)
78 
79 //
80 // Heaters / Fans
81 //
82 #define HEATER_0_PIN PA2 // HOTEND MOSFET
83 #define HEATER_BED_PIN PA0 // BED MOSFET
84 
85 #define FAN_PIN PA1 // FAN1 header on board - PRINT FAN
86 
87 //
88 // Misc.
89 //
90 #define LED_PIN PC13
91 #define SDSS PA3