diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-02-03 13:25:10 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-02-03 13:25:10 +0300 |
commit | 3076d73e03ae7757d982b657213dcdf246bd25e6 (patch) | |
tree | 66f0c9ba67c6ede828956311e1b9da04c08b05e0 /src/Display/Display.cpp | |
parent | 10816b860be4e3621c4b4eccb43488d5bfa5caa4 (diff) |
12864 SPI clock frequency is now configurable
Diffstat (limited to 'src/Display/Display.cpp')
-rw-r--r-- | src/Display/Display.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Display/Display.cpp b/src/Display/Display.cpp index facb059c..5ee1d6de 100644 --- a/src/Display/Display.cpp +++ b/src/Display/Display.cpp @@ -137,6 +137,10 @@ GCodeResult Display::Configure(GCodeBuffer& gb, const StringRef& reply) { lcd = new Lcd7920(LcdCSPin, fonts, ARRAY_SIZE(fonts)); } + if (gb.Seen('F')) + { + lcd->SetSpiClockFrequency(gb.GetUIValue()); + } lcd->Init(); IoPort::SetPinMode(LcdBeepPin, OUTPUT_PWM_LOW); lcd->SetFont(SmallFontNumber); |