Browse Source

Fix pins for ZONESTAR_LCD with Zonestar ZRIB (#12956)

Gert-Jan Rodenburg 6 years ago
parent
commit
bb30927549
1 changed files with 39 additions and 10 deletions
  1. 39
    10
      Marlin/src/pins/pins_ZRIB_V20.h

+ 39
- 10
Marlin/src/pins/pins_ZRIB_V20.h View File

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

Loading…
Cancel
Save