Browse Source

Fix for YHCB2004 (#21450)

Vert 4 years ago
parent
commit
241d2e3fa3
No account linked to committer's email address
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      Marlin/src/pins/mega/pins_GT2560_V3.h

+ 6
- 3
Marlin/src/pins/mega/pins_GT2560_V3.h View File

158
 #if ENABLED(YHCB2004)
158
 #if ENABLED(YHCB2004)
159
   #ifndef YHCB2004_CLK
159
   #ifndef YHCB2004_CLK
160
     #define YHCB2004_CLK                      5
160
     #define YHCB2004_CLK                      5
161
+    #define DIO52 YHCB2004_CLK
161
   #endif
162
   #endif
162
   #ifndef YHCB2004_MOSI
163
   #ifndef YHCB2004_MOSI
163
-    #define YHCB2004_MOSI                     21
164
+    #define YHCB2004_MOSI                     36
165
+    #define DIO51 YHCB2004_MOSI
164
   #endif
166
   #endif
165
   #ifndef YHCB2004_MISO
167
   #ifndef YHCB2004_MISO
166
-    #define YHCB2004_MISO                     36
168
+    #define YHCB2004_MISO                     21
169
+    #define DIO50 YHCB2004_MISO
167
   #endif
170
   #endif
168
 #elif HAS_WIRED_LCD
171
 #elif HAS_WIRED_LCD
169
   #ifndef LCD_PINS_RS
172
   #ifndef LCD_PINS_RS
206
   #ifndef BTN_ENC
209
   #ifndef BTN_ENC
207
     #define BTN_ENC                           19
210
     #define BTN_ENC                           19
208
   #endif
211
   #endif
209
-#endif
212
+#endif

Loading…
Cancel
Save