Browse Source

Smoothieboard GLCD w/ SD support (#19241)

vanilla_fb_2.0.x
Greg Nutt 4 years ago
committed by GitHub
parent
commit
691f02acab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h

43
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h

@ -111,7 +111,48 @@
#elif HAS_SPI_LCD
#error "Marlin's Smoothieboard support cannot drive your LCD."
/*
The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either
a custom cable with breakouts to the pins indicated below or the RRD GLCD Adapter board
found at http://smoothieware.org/rrdglcdadapter
Other links to information about setting up a display panel with Smoothieboard
http://chibidibidiwah.wdfiles.com/local--files/panel/smoothieboard2sd.jpg
http://smoothieware.org/panel
*/
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
// EXP1 Pins
#define BEEPER_PIN P1_31 // EXP1 Pin 1
#define BTN_ENC P1_30 // EXP1 Pin 2
#define LCD_PINS_ENABLE P0_18 // EXP1 Pin 3 (MOSI)
#define LCD_PINS_RS P0_16 // EXP1 Pin 4 (CS)
#define LCD_PINS_D4 P0_15 // EXP1 Pin 5 (SCK)
// EXP2 Pins
#define BTN_EN2 P3_26 // EXP2 Pin 3
#define BTN_EN1 P3_25 // EXP2 Pin 5
/*
SD Support
For the RRD GLCD it CANNOT share the same SPI as the LCD so it must be
hooked up to the onboard SDCard SPI and use a spare pin for the SDCS.
Also note that an external SDCard sharing the SPI port with the
onboard/internal SDCard must be ejected before rebooting as the bootloader
does not like the external card. NOTE Smoothie will not boot if the external
sdcard is inserted in the RRD LCD sdcard slot at boot time, it must be
inserted after it has booted.
*/
#define MISO_PIN P0_08 // EXP2 Pin 1 (PB3, SD_MISO)
#define SCK_PIN P0_07 // EXP2 Pin 2 (SD_SCK)
#define SS_PIN P0_28 // EXP2 Pin 4 (SD_CSEL, SD_CS)
#define MOSI_PIN P0_09 // EXP2 Pin 6 (PB2, SD_MOSI)
#define SD_DETECT_PIN P0_27 // EXP2 Pin 7 (SD_CD, SD_DET)
#else
#error "Marlin's Smoothieboard support cannot drive your LCD."
#endif
#endif

Loading…
Cancel
Save