Prusa MINI Firmware overview
pins_TEENSY31_32.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  * Teensy 3.1 (MK20DX256) and Teensy 3.2 (MK20DX256) Breadboard pin assignments
26  * Requires the Teensyduino software with Teensy 3.1 or Teensy 3.2 selected in Arduino IDE!
27  * http://www.pjrc.com/teensy/teensyduino.html
28  */
29 
30 #if !IS_32BIT_TEENSY
31  #error "Oops! Select 'Teensy 3.1' or 'Teensy 3.2' in 'Tools > Board.'"
32 #endif
33 
34 #ifndef BOARD_INFO_NAME
35  #define BOARD_INFO_NAME "Teensy3.2"
36 #endif
37 
38 #define AT90USB 1286 // Disable MarlinSerial etc.
39 #define USBCON //1286 // Disable MarlinSerial etc.
40 
41 //
42 // Limit Switches
43 //
44 #define X_STOP_PIN 3
45 #define Y_STOP_PIN 4
46 #define Z_STOP_PIN 5
47 
48 //
49 // Steppers
50 //
51 #define X_STEP_PIN 5
52 #define X_DIR_PIN 6
53 #define X_ENABLE_PIN 2
54 
55 #define Y_STEP_PIN 7
56 #define Y_DIR_PIN 8
57 #define Y_ENABLE_PIN 2
58 
59 #define Z_STEP_PIN 9
60 #define Z_DIR_PIN 10
61 #define Z_ENABLE_PIN 2
62 
63 #define E0_STEP_PIN 11
64 #define E0_DIR_PIN 12
65 #define E0_ENABLE_PIN 2
66 
67 //#define E1_STEP_PIN 33
68 //#define E1_DIR_PIN 34
69 //#define E1_ENABLE_PIN 35
70 
71 //
72 // Heaters / Fans
73 //
74 #define HEATER_0_PIN 20
75 // #define HEATER_1_PIN 36
76 #define HEATER_BED_PIN 21
77 #ifndef FAN_PIN
78  #define FAN_PIN 22
79 #endif
80 
81 //
82 // Temperature Sensors
83 //
84 #define TEMP_0_PIN 14 // Analog Input - Extruder 2 => A2
85 //#define TEMP_1_PIN 0 // Analog Input
86 #define TEMP_BED_PIN 15 // Analog Input - Bed
87 
88 #ifndef FILWIDTH_PIN
89  #define FILWIDTH_PIN 6 // Analog Input
90 #endif
91 
92 //
93 // Misc. Functions
94 //
95 
96 //#define SDSS 16 // 8
97 #define LED_PIN 13
98 
99 //#define SOL1_PIN 28
100 
101 //
102 // LCD / Controller
103 //
104 
105 //#define SCK_PIN 13
106 //#define MISO_PIN 12
107 //#define MOSI_PIN 11
108 
109 /*
110 #if HAS_SPI_LCD
111  #define LCD_PINS_RS 40
112  #define LCD_PINS_ENABLE 41
113  #define LCD_PINS_D4 42
114  #define LCD_PINS_D5 43
115  #define LCD_PINS_D6 44
116  #define LCD_PINS_D7 45
117  #define BTN_EN1 46
118  #define BTN_EN2 47
119  #define BTN_ENC 48
120 #endif
121 */