Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2018-01-22 23:10:54 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-01-22 23:11:11 +0300
commit9184a403b4645f17fbc732b33715891f4a7653b5 (patch)
tree0d4f7679ca0732590f9964ea2e3eec0ef44d6df9 /src/Display/Display.cpp
parentcc8de620887759dbb6ade8b5b0bffc6e9194222e (diff)
Towards version 1.21RC1
Added multi-tap probing Added M260/M281 I2C send and receive Added absolute babystepping mode Fix for pressure advance with non-uniform extrusoin rate Disabled cache oin SAM4E Fixed FTP "listen failed" bug Fixed crash when trying to confoigure a filament monitor on a DueX endstop input Change endstops 5-9 pin allocation when no DueX board present Show board revision as 1.02 if VSSA sense present Ported DHCP fixes form lwip 2 to Duet 06/085 build M304 bug fix Bug fix to recent PrintMonitor change when getting "Generated by" string
Diffstat (limited to 'src/Display/Display.cpp')
-rw-r--r--src/Display/Display.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Display/Display.cpp b/src/Display/Display.cpp
new file mode 100644
index 00000000..ea037c7c
--- /dev/null
+++ b/src/Display/Display.cpp
@@ -0,0 +1,35 @@
+/*
+ * Display.cpp
+ *
+ * Created on: 22 Jan 2018
+ * Author: David
+ */
+
+#include "Display.h"
+
+Display::Display()
+ : lcd(LcdCSPin), encoder(EncoderPinA, EncoderPinB, EncoderPinSw, 4)
+{
+ //TODO init menus here
+}
+
+void Display::Init()
+{
+ lcd.begin();
+}
+
+void Display::Spin(bool full)
+{
+ encoder.Poll();
+ if (full)
+ {
+ lcd.Update();
+ }
+}
+
+void Display::Exit()
+{
+ // Nothing needed here except perhaps display a "shutdown" message
+}
+
+// End