Browse Source

Fix up K8800 pins (#19476)

riodoro1 4 years ago
parent
commit
225487f9db
No account linked to committer's email address
1 changed files with 37 additions and 24 deletions
  1. 37
    24
      Marlin/src/pins/ramps/pins_K8800.h

+ 37
- 24
Marlin/src/pins/ramps/pins_K8800.h View File

39
 //
39
 //
40
 #define X_STOP_PIN                             3
40
 #define X_STOP_PIN                             3
41
 #define Y_STOP_PIN                            14
41
 #define Y_STOP_PIN                            14
42
-#define Z_MIN_PIN                             68  // Used for bed leveling
43
-#define Z_MAX_PIN                             66
42
+#define Z_STOP_PIN                            66
43
+
44
+#ifndef Z_MIN_PROBE_PIN
45
+  #define Z_MIN_PROBE_PIN                     68
46
+#endif
47
+
48
+#define FIL_RUNOUT_PIN                        69  // PK7
44
 
49
 
45
 //
50
 //
46
 // Steppers
51
 // Steppers
61
 #define E0_DIR_PIN                            28
66
 #define E0_DIR_PIN                            28
62
 #define E0_ENABLE_PIN                         24
67
 #define E0_ENABLE_PIN                         24
63
 
68
 
64
-#define E1_STEP_PIN                           32
65
-#define E1_DIR_PIN                            34
66
-#define E1_ENABLE_PIN                         30
67
-
68
 //
69
 //
69
 // Temperature Sensors
70
 // Temperature Sensors
70
 //
71
 //
80
 //
81
 //
81
 // Misc. Functions
82
 // Misc. Functions
82
 //
83
 //
83
-#define SDSS                                  25
84
-
85
-#define FIL_RUNOUT_PIN                        69  // PK7
86
 #define KILL_PIN                              20  // PD1
84
 #define KILL_PIN                              20  // PD1
85
+#define CASE_LIGHT_PIN                         7
87
 
86
 
88
 //
87
 //
89
-// LCD / Controller
88
+// SD Card
90
 //
89
 //
90
+#define SDSS                                  25
91
 #define SD_DETECT_PIN                         21  // PD0
91
 #define SD_DETECT_PIN                         21  // PD0
92
-#define LCD_SDSS                              53
92
+
93
+//
94
+// LCD / Controller
95
+//
93
 #define BEEPER_PIN                             6
96
 #define BEEPER_PIN                             6
94
 
97
 
95
-#define DOGLCD_CS                             29
96
-#define DOGLCD_A0                             27
98
+#if HAS_SPI_LCD
97
 
99
 
98
-#define LCD_PINS_RS                           27
99
-#define LCD_PINS_ENABLE                       29
100
-#define LCD_PINS_D4                           37
101
-#define LCD_PINS_D5                           35
102
-#define LCD_PINS_D6                           33
103
-#define LCD_PINS_D7                           31
100
+  #define LCD_SDSS                            53
104
 
101
 
105
-#if ENABLED(NEWPANEL)
106
-  #define BTN_EN1                             17
107
-  #define BTN_EN2                             16
108
-  #define BTN_ENC                             23
109
-#endif
102
+  #define DOGLCD_CS                           29
103
+  #define DOGLCD_A0                           27
104
+
105
+  #define LCD_PINS_RS                         27
106
+  #define LCD_PINS_ENABLE                     29
107
+  #define LCD_PINS_D4                         37
108
+  #define LCD_PINS_D5                         35
109
+  #define LCD_PINS_D6                         33
110
+  #define LCD_PINS_D7                         31
111
+
112
+  #define LCD_CONTRAST_MIN                     0
113
+  #define LCD_CONTRAST_MAX                   100
114
+  #define DEFAULT_LCD_CONTRAST                30
115
+
116
+  #if ENABLED(NEWPANEL)
117
+    #define BTN_EN1                           17
118
+    #define BTN_EN2                           16
119
+    #define BTN_ENC                           23
120
+  #endif
121
+
122
+#endif // HAS_SPI_LCD

Loading…
Cancel
Save