Browse Source

SAMD51: Update LCD pins (#14907)

Giuliano Zaro 6 years ago
parent
commit
3129fd06f0
1 changed files with 16 additions and 13 deletions
  1. 16
    13
      Marlin/src/pins/samd/pins_AGCM4_RURAMPS4D_13.h

+ 16
- 13
Marlin/src/pins/samd/pins_AGCM4_RURAMPS4D_13.h View File

102
 
102
 
103
 #if HAS_FILAMENT_SENSOR
103
 #if HAS_FILAMENT_SENSOR
104
   #ifndef FIL_RUNOUT_PIN
104
   #ifndef FIL_RUNOUT_PIN
105
-    #define FIL_RUNOUT_PIN   Y_MIN_PIN
105
+    #define FIL_RUNOUT_PIN Y_MIN_PIN
106
   #endif
106
   #endif
107
 #endif
107
 #endif
108
 
108
 
172
 
172
 
173
   #if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
173
   #if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
174
 
174
 
175
-    #define BEEPER_PIN     75
175
+    #error "Pin compatibility check needed!"
176
+    #define BEEPER_PIN     54
176
     #define LCD_PINS_D4    48
177
     #define LCD_PINS_D4    48
177
     #define LCD_PINS_D7    53
178
     #define LCD_PINS_D7    53
178
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
179
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
179
-    #define LCD_PINS_RS    76
180
-    #define LCD_PINS_ENABLE 77
180
+    #define LCD_PINS_RS    55
181
+    #define LCD_PINS_ENABLE 56
181
 
182
 
182
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
183
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
183
 
184
 
184
-    #define BEEPER_PIN     75
185
+    #define BEEPER_PIN     54
185
     #define LCD_PINS_D4    48
186
     #define LCD_PINS_D4    48
186
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
187
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
187
-    #define LCD_PINS_RS    76
188
-    #define LCD_PINS_ENABLE 77
188
+    #define LCD_PINS_RS    55
189
+    #define LCD_PINS_ENABLE 56
189
 
190
 
190
   #elif HAS_SSD1306_OLED_I2C
191
   #elif HAS_SSD1306_OLED_I2C
191
 
192
 
192
-    #define BEEPER_PIN     75
193
+    #error "Pin compatibility check needed!"
194
+    #define BEEPER_PIN     54
193
     #define LCD_SDSS       10
195
     #define LCD_SDSS       10
194
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
196
     #define SD_DETECT_PIN  -1    // 51 can't be used, it's MOSI
195
 
197
 
196
   #elif ENABLED(FYSETC_MINI_12864)
198
   #elif ENABLED(FYSETC_MINI_12864)
197
 
199
 
198
-    #define BEEPER_PIN     75
199
-    #define DOGLCD_CS      77
200
-    #define DOGLCD_A0      76
200
+    #error "Pin compatibility check needed!"
201
+    #define BEEPER_PIN     54
202
+    #define DOGLCD_CS      56
203
+    #define DOGLCD_A0      55
201
 
204
 
202
     //#define FORCE_SOFT_SPI    // Use this if default of hardware SPI causes display problems
205
     //#define FORCE_SOFT_SPI    // Use this if default of hardware SPI causes display problems
203
-                                //   results in LCD soft SPI mode 3, SD soft SPI mode 0
206
+                                // results in LCD soft SPI mode 3, SD soft SPI mode 0
204
 
207
 
205
     #define LCD_RESET_PIN  48   // Must be high or open for LCD to operate normally.
208
     #define LCD_RESET_PIN  48   // Must be high or open for LCD to operate normally.
206
 
209
 
217
       #endif
220
       #endif
218
     #elif ENABLED(FYSETC_MINI_12864_2_1)
221
     #elif ENABLED(FYSETC_MINI_12864_2_1)
219
       #error "Pin compatibility check needed! Grand central M4 pins 50, 51 and 52 are not GPIO pins, they are wired to MISO, MOSI, and SCK."
222
       #error "Pin compatibility check needed! Grand central M4 pins 50, 51 and 52 are not GPIO pins, they are wired to MISO, MOSI, and SCK."
220
-      #define NEOPIXEL_PIN    50   // D5
223
+      #define NEOPIXEL_PIN 50   // D5
221
     #endif
224
     #endif
222
 
225
 
223
   #elif ENABLED(MKS_MINI_12864)
226
   #elif ENABLED(MKS_MINI_12864)

Loading…
Cancel
Save