Selaa lähdekoodia

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

android444 6 vuotta sitten
vanhempi
commit
9c235ef821

+ 1
- 0
Marlin/src/HAL/HAL_TEENSY35_36/HAL.cpp Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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…
Peruuta
Tallenna