From 9c235ef8210049724667951f63c194dc157837dc Mon Sep 17 00:00:00 2001 From: android444 Date: Sun, 27 May 2018 10:36:57 +0200 Subject: [PATCH] [HAL]Add support for ST7920 - Teensy 3.x (#10872) --- Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp | 1 + Marlin/src/HAL/HAL_TEENSY35_36/HAL.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp b/Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp index bdd6f461fb..5bd3369e43 100644 --- a/Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp +++ b/Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp @@ -26,6 +26,7 @@ #if defined(__MK64FX512__) || defined(__MK66FX1M0__) #include "HAL.h" +#include "../Delay.h" #include diff --git a/Marlin/src/HAL/HAL_TEENSY35_36/HAL.h b/Marlin/src/HAL/HAL_TEENSY35_36/HAL.h index 0b2646abae..59f729ba86 100644 --- a/Marlin/src/HAL/HAL_TEENSY35_36/HAL.h +++ b/Marlin/src/HAL/HAL_TEENSY35_36/HAL.h @@ -51,6 +51,10 @@ #include +#define ST7920_DELAY_1 DELAY_NS(600) +#define ST7920_DELAY_2 DELAY_NS(750) +#define ST7920_DELAY_3 DELAY_NS(750) + // -------------------------------------------------------------------------- // Defines // --------------------------------------------------------------------------