From 06a02dd2006c19149978b2b530e89dee1aedbaea Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 18 Sep 2017 17:10:29 -0500 Subject: [PATCH] Workaround for SCK/MOSI pins on VIKI --- Marlin/src/config/Configuration_adv.h | 7 +++++++ .../config/examples/AlephObjects/TAZ4/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/Anet/A6/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/Anet/A8/Configuration_adv.h | 7 +++++++ .../src/config/examples/BQ/Hephestos/Configuration_adv.h | 7 +++++++ .../src/config/examples/BQ/Hephestos_2/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/Cartesio/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/Felix/Configuration_adv.h | 7 +++++++ .../examples/Folger Tech/i3-2020/Configuration_adv.h | 7 +++++++ .../config/examples/Infitary/i3-M508/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/Malyan/M150/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/RigidBot/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/SCARA/Configuration_adv.h | 7 +++++++ .../src/config/examples/Sanguinololu/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/TinyBoy2/Configuration_adv.h | 7 +++++++ .../src/config/examples/Velleman/K8200/Configuration_adv.h | 7 +++++++ .../src/config/examples/Velleman/K8400/Configuration_adv.h | 7 +++++++ .../delta/FLSUN/auto_calibrate/Configuration_adv.h | 7 +++++++ .../examples/delta/FLSUN/kossel_mini/Configuration_adv.h | 7 +++++++ .../src/config/examples/delta/generic/Configuration_adv.h | 7 +++++++ .../config/examples/delta/kossel_mini/Configuration_adv.h | 7 +++++++ .../config/examples/delta/kossel_pro/Configuration_adv.h | 7 +++++++ .../config/examples/delta/kossel_xl/Configuration_adv.h | 7 +++++++ .../config/examples/gCreate/gMax1.5+/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/makibox/Configuration_adv.h | 7 +++++++ .../src/config/examples/tvrrug/Round2/Configuration_adv.h | 7 +++++++ Marlin/src/config/examples/wt150/Configuration_adv.h | 7 +++++++ 28 files changed, 196 insertions(+) diff --git a/Marlin/src/config/Configuration_adv.h b/Marlin/src/config/Configuration_adv.h index 561c831116..b05db4d2c7 100644 --- a/Marlin/src/config/Configuration_adv.h +++ b/Marlin/src/config/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h b/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h index 701e77ddf1..808ed1a73f 100644 --- a/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h +++ b/Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Anet/A6/Configuration_adv.h b/Marlin/src/config/examples/Anet/A6/Configuration_adv.h index 8e75a664c4..6a8cd7d14e 100644 --- a/Marlin/src/config/examples/Anet/A6/Configuration_adv.h +++ b/Marlin/src/config/examples/Anet/A6/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Anet/A8/Configuration_adv.h b/Marlin/src/config/examples/Anet/A8/Configuration_adv.h index b75bc99d97..75df5605e1 100644 --- a/Marlin/src/config/examples/Anet/A8/Configuration_adv.h +++ b/Marlin/src/config/examples/Anet/A8/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h b/Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h index 5b575f1477..bf0313aa12 100644 --- a/Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h +++ b/Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h b/Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h index 4da99abc54..2e2c0e1b84 100644 --- a/Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h +++ b/Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h b/Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h index 5b575f1477..bf0313aa12 100644 --- a/Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h +++ b/Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Cartesio/Configuration_adv.h b/Marlin/src/config/examples/Cartesio/Configuration_adv.h index b1efb3a1c7..aca1c3e21e 100644 --- a/Marlin/src/config/examples/Cartesio/Configuration_adv.h +++ b/Marlin/src/config/examples/Cartesio/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Felix/Configuration_adv.h b/Marlin/src/config/examples/Felix/Configuration_adv.h index 3eadd8e0a4..3490fc1015 100644 --- a/Marlin/src/config/examples/Felix/Configuration_adv.h +++ b/Marlin/src/config/examples/Felix/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h b/Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h index c4b9bc1a21..b700b4e8fe 100644 --- a/Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h +++ b/Marlin/src/config/examples/Folger Tech/i3-2020/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h b/Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h index 06197b8c51..e4d8f54f03 100644 --- a/Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h +++ b/Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Malyan/M150/Configuration_adv.h b/Marlin/src/config/examples/Malyan/M150/Configuration_adv.h index 0b4566ce55..8582fd29aa 100644 --- a/Marlin/src/config/examples/Malyan/M150/Configuration_adv.h +++ b/Marlin/src/config/examples/Malyan/M150/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/RigidBot/Configuration_adv.h b/Marlin/src/config/examples/RigidBot/Configuration_adv.h index 033c27a76f..03e54a17a7 100644 --- a/Marlin/src/config/examples/RigidBot/Configuration_adv.h +++ b/Marlin/src/config/examples/RigidBot/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/SCARA/Configuration_adv.h b/Marlin/src/config/examples/SCARA/Configuration_adv.h index 43076df9b3..f254cf3410 100644 --- a/Marlin/src/config/examples/SCARA/Configuration_adv.h +++ b/Marlin/src/config/examples/SCARA/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Sanguinololu/Configuration_adv.h b/Marlin/src/config/examples/Sanguinololu/Configuration_adv.h index f4910680d2..396119257c 100644 --- a/Marlin/src/config/examples/Sanguinololu/Configuration_adv.h +++ b/Marlin/src/config/examples/Sanguinololu/Configuration_adv.h @@ -564,6 +564,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/TinyBoy2/Configuration_adv.h b/Marlin/src/config/examples/TinyBoy2/Configuration_adv.h index 5ac54e9c79..70a0a433a1 100644 --- a/Marlin/src/config/examples/TinyBoy2/Configuration_adv.h +++ b/Marlin/src/config/examples/TinyBoy2/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h b/Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h index a9ad356bf4..f6696d9e20 100644 --- a/Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h +++ b/Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h @@ -588,6 +588,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h b/Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h index 954fe7805e..596912602c 100644 --- a/Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h +++ b/Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h b/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h index 44b414b3cb..027f70b2f5 100644 --- a/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h @@ -577,6 +577,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h b/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h index 407e296dc3..f9edf48b3c 100644 --- a/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h @@ -577,6 +577,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/generic/Configuration_adv.h b/Marlin/src/config/examples/delta/generic/Configuration_adv.h index 407e296dc3..f9edf48b3c 100644 --- a/Marlin/src/config/examples/delta/generic/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/generic/Configuration_adv.h @@ -577,6 +577,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h b/Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h index 407e296dc3..f9edf48b3c 100644 --- a/Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h @@ -577,6 +577,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h b/Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h index 7f0b0b4938..ad920e516c 100644 --- a/Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h @@ -582,6 +582,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h b/Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h index f1c42ee2d1..c6d202a87c 100644 --- a/Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h +++ b/Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h @@ -577,6 +577,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h b/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h index 3a00d22640..5e02ac9f6b 100644 --- a/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h +++ b/Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/makibox/Configuration_adv.h b/Marlin/src/config/examples/makibox/Configuration_adv.h index ae2324216d..65b5e0c6f0 100644 --- a/Marlin/src/config/examples/makibox/Configuration_adv.h +++ b/Marlin/src/config/examples/makibox/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h b/Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h index 28807823ee..f552e184ef 100644 --- a/Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h +++ b/Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety diff --git a/Marlin/src/config/examples/wt150/Configuration_adv.h b/Marlin/src/config/examples/wt150/Configuration_adv.h index ec51165e42..28b9a397f8 100644 --- a/Marlin/src/config/examples/wt150/Configuration_adv.h +++ b/Marlin/src/config/examples/wt150/Configuration_adv.h @@ -575,6 +575,13 @@ // Enable this option and reduce the value to optimize screen updates. // The normal delay is 10µs. Use the lowest value that still gives a reliable display. //#define DOGM_SPI_DELAY_US 5 + + // VIKI2 and miniVIKI require DOGLCD_SCK and DOGLCD_MOSI to be defined. + #if ENABLED(VIKI2) || ENABLED(miniVIKI) + #define DOGLCD_SCK SCK_PIN + #define DOGLCD_MOSI MOSI_PIN + #endif + #endif // DOGLCD // @section safety