Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting REPRAP_DISCOUNT_SMART_CONTROLLER #23522

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@
* The differences to the RAMPS v1.4 are:
* - Swap heater E0 with E1
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
* - Change pins 16->42, 17->44 and 29->53 used for display.
*
* LCD adapter
* ------ ------
* D37 |10 9 | D35 (MISO) D50 |10 9 | D52 (SCK)
* D31 | 8 7 | D41 D29 | 8 7 | D53
* D33 6 5 | D23 D25 6 5 | D51 (MOSI)
* D42 | 4 3 | D44 D49 | 4 3 | D27
* GND | 2 1 | 5V GND | 2 1 | 5V
* ------ ------
* EXP1 EXP2
*
* Applies to the following boards:
*
Expand Down Expand Up @@ -64,7 +73,26 @@

#include "pins_RAMPS.h"

#if IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#undef LCD_PINS_RS
#define LCD_PINS_RS 41
#undef LCD_PINS_ENABLE
#define LCD_PINS_ENABLE 31
#undef LCD_PINS_D4
#define LCD_PINS_D4 33
#undef LCD_PINS_D5
#define LCD_PINS_D5 23
#undef LCD_PINS_D6
#define LCD_PINS_D6 42
#undef LCD_PINS_D7
#define LCD_PINS_D7 44
#undef BTN_EN1
#define BTN_EN1 25
#undef BTN_EN2
#define BTN_EN2 29
#undef KILL_PIN
#define KILL_PIN 27
#elif IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
#undef LCD_PINS_RS
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
Expand Down