MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

Please add pin definitions for RAMPS-FD LCD adapter board #164

Open Bob-the-Kuhn opened 7 years ago

Bob-the-Kuhn commented 7 years ago

When using the LCD adapter board for the RAMPS-FD the following pin definitions are needed to make the SD card work:

#define MOSI_PIN          75
#define MISO_PIN          74
#define SCK_PIN           76
#define SDSS               4

I'm not familiar enough with this code to know how/where to implement the changes.

I've tested this with the DUE_SOFTWARE_SPI enabled and with the hardware SPI enabled. For the hardware SPI to work the following also needs to be included: #define SPI_PIN SCK_PIN

I also saw a #define SS_PIN SDSS for another board. I don't know if this is required or not.

FYI - On the adapter I had to pry the EXP1 & EXP2 shrouds up and rotate them 180 degrees in order to interface a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER to it.

iosonopersia commented 7 years ago

SPI pins should go in HAL/HAL_DUE/spi_pins_due.h, but I don't know how...