Prusa MINI Firmware overview
pins_ZRIB_V20.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  * ZRIB V2.0 & V3.0 pin assignments
26  * V2 and V3 Boards only differ in USB controller, nothing affecting the pins.
27  */
28 
29 #include "pins_MKS_GEN_13.h"
30 
31 #define ZRIB_V20_D6_PIN 6 // Fan
32 #define ZRIB_V20_D9_PIN 9 // Fan2
33 #define ZRIB_V20_A10_PIN 10
34 #define ZRIB_V20_D16_PIN 16
35 #define ZRIB_V20_D17_PIN 17
36 #define ZRIB_V20_D23_PIN 23
37 #define ZRIB_V20_D25_PIN 25
38 #define ZRIB_V20_D27_PIN 27
39 #define ZRIB_V20_D29_PIN 29
40 #define ZRIB_V20_D37_PIN 37
41 
42 #define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D6_PIN
43 #define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D6_PIN
44 #define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D6_PIN
45 #define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D6_PIN
46 
47 #ifndef FILWIDTH_PIN
48  #define FILWIDTH_PIN 11 // Analog Input
49 #endif
50 
51 #if ENABLED(ZONESTAR_LCD)
52  #undef LCD_PINS_RS
53  #undef LCD_PINS_ENABLE
54  #undef LCD_PINS_D4
55  #undef LCD_PINS_D5
56  #undef LCD_PINS_D6
57  #undef LCD_PINS_D7
58  #undef ADC_KEYPAD_PIN
59  #undef BEEPER_PIN
60 
61  #define LCD_PINS_RS ZRIB_V20_D16_PIN
62  #define LCD_PINS_ENABLE ZRIB_V20_D17_PIN
63  #define LCD_PINS_D4 ZRIB_V20_D23_PIN
64  #define LCD_PINS_D5 ZRIB_V20_D25_PIN
65  #define LCD_PINS_D6 ZRIB_V20_D27_PIN
66  #define LCD_PINS_D7 ZRIB_V20_D29_PIN
67  #define ADC_KEYPAD_PIN ZRIB_V20_A10_PIN
68  #define BEEPER_PIN ZRIB_V20_D37_PIN
69 #endif
pins_MKS_GEN_13.h