Browse Source

[HAL]Add support for ST7920 - Teensy 3.x (#10872)

android444 6 years ago
parent
commit
9c235ef821
2 changed files with 5 additions and 0 deletions
  1. 1
    0
      Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp
  2. 4
    0
      Marlin/src/HAL/HAL_TEENSY35_36/HAL.h

+ 1
- 0
Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp View File

@@ -26,6 +26,7 @@
26 26
 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
27 27
 
28 28
 #include "HAL.h"
29
+#include "../Delay.h"
29 30
 
30 31
 #include <Wire.h>
31 32
 

+ 4
- 0
Marlin/src/HAL/HAL_TEENSY35_36/HAL.h View File

@@ -51,6 +51,10 @@
51 51
 
52 52
 #include <stdint.h>
53 53
 
54
+#define ST7920_DELAY_1 DELAY_NS(600)
55
+#define ST7920_DELAY_2 DELAY_NS(750)
56
+#define ST7920_DELAY_3 DELAY_NS(750)
57
+
54 58
 // --------------------------------------------------------------------------
55 59
 // Defines
56 60
 // --------------------------------------------------------------------------

Loading…
Cancel
Save