浏览代码

MKS OLED support for RUMBA

Based on #10519

Co-Authored-By: Alex <alex18881@users.noreply.github.com>
Scott Lahteine 7 年前
父节点
当前提交
0e450df6a2
共有 1 个文件被更改,包括 26 次插入15 次删除
  1. 26
    15
      Marlin/src/pins/pins_RUMBA.h

+ 26
- 15
Marlin/src/pins/pins_RUMBA.h 查看文件

137
 #define CASE_LIGHT_PIN     45
137
 #define CASE_LIGHT_PIN     45
138
 
138
 
139
 //
139
 //
140
-// LCD / Controller
141
-//
142
-#define SD_DETECT_PIN      49
143
-#define BEEPER_PIN         44
144
-#define LCD_PINS_RS        19
145
-#define LCD_PINS_ENABLE    42
146
-#define LCD_PINS_D4        18
147
-#define LCD_PINS_D5        38
148
-#define LCD_PINS_D6        41
149
-#define LCD_PINS_D7        40
150
-#define BTN_EN1            11
151
-#define BTN_EN2            12
152
-#define BTN_ENC            43
153
-
154
-//
155
 // M3/M4/M5 - Spindle/Laser Control
140
 // M3/M4/M5 - Spindle/Laser Control
156
 //
141
 //
157
 #ifndef SPINDLE_LASER_PWM_PIN
142
 #ifndef SPINDLE_LASER_PWM_PIN
163
 #ifndef SPINDLE_DIR_PIN
148
 #ifndef SPINDLE_DIR_PIN
164
   #define SPINDLE_DIR_PIN          15
149
   #define SPINDLE_DIR_PIN          15
165
 #endif
150
 #endif
151
+
152
+//
153
+// LCD / Controller
154
+//
155
+#define SD_DETECT_PIN      49
156
+#define BEEPER_PIN         44
157
+#define LCD_PINS_D7        40
158
+#define BTN_EN1            11
159
+#define BTN_EN2            12
160
+#define BTN_ENC            43
161
+
162
+#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
163
+  #define LCD_PINS_DC      38 // Set as output on init
164
+  #define LCD_PINS_RS      41 // Pull low for 1s to init
165
+  // DOGM SPI LCD Support
166
+  #define DOGLCD_CS        19
167
+  #define DOGLCD_MOSI      42
168
+  #define DOGLCD_SCK       18
169
+  #define DOGLCD_A0        LCD_PINS_DC
170
+#else
171
+  #define LCD_PINS_RS      19
172
+  #define LCD_PINS_ENABLE  42
173
+  #define LCD_PINS_D4      18
174
+  #define LCD_PINS_D5      38
175
+  #define LCD_PINS_D6      41
176
+#endif

正在加载...
取消
保存