Skip to content

Commit

Permalink
To use MKS MINI 12864; Custom cable is required to work with this; re…
Browse files Browse the repository at this point in the history
  • Loading branch information
w-dee committed Sep 4, 2022
1 parent 3163ab5 commit fb3766b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ M503
// RepRapDiscount FULL GRAPHIC Smart Controller
// https://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

//
// K.3D Full Graphic Smart Controller
Expand Down Expand Up @@ -2605,7 +2605,7 @@ M503
// MKS MINI12864 with graphic controller and SD support
// https://reprap.org/wiki/MKS_MINI_12864
//
//#define MKS_MINI_12864
#define MKS_MINI_12864

//
// MKS MINI12864 V3 is an alias for FYSETC_MINI_12864_2_1. Type A/B. NeoPixel RGB Backlight.
Expand Down
12 changes: 12 additions & 0 deletions Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,18 @@

#endif // HAS_WIRED_LCD


// Note, MKS SBASE/SGEN has no connection of DOGLCD_CS and DOGLCD_A0.
// Use modification described at https://github.com/makerbase-mks/MKS-SBASE/issues/101
#ifdef MKS_MINI_12864
#define DOGLCD_CS P0_16
#define DOGLCD_A0 P0_15
#define DOGLCD_SCK P0_07
#define DOGLCD_MOSI P0_09
#define FORCE_SOFT_SPI // use software SPI; possible reason is the same as the FYSETC_MINI_12864.
#define SOFTWARE_SPI
#endif

/**
* Example for trinamic drivers using the J8 connector on MKs Sbase.
* 2130s need 1 pin for each driver. 2208/2209s need 2 pins for serial control.
Expand Down

0 comments on commit fb3766b

Please sign in to comment.