Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface LM75B mbed-rtos mbed
Diff: LcdControl.cpp
- Revision:
- 0:29eeb74e55c6
- Child:
- 1:db9b9bec0133
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LcdControl.cpp Tue Mar 13 11:10:03 2018 +0000
@@ -0,0 +1,48 @@
+#include "lcdcontrol.h"
+C12832A1Z scherm(p5, p7, p6, p8, p11);
+
+LcdControl::LcdControl()
+{
+ //Constructor
+}
+
+//Unieke methoden voor setup.cpp
+
+void LcdControl::printMode()
+{
+ scherm.cls();
+ scherm.locate(0,0);//bereik x: 0-X, y: 0-23
+ scherm.printf("Use Joystick to choose mode");
+ scherm.locate(6,13);
+ scherm.printf("Master <- -> Slave");
+ scherm.locate(0,23);
+}
+
+void LcdControl::printSlave()
+{
+ scherm.printf("Mode: Slave");
+}
+
+void LcdControl::printMaster()
+{
+ scherm.printf("Mode: Master");
+}
+
+void LcdControl::printID(int ID)
+{
+ scherm.printf("ID = %d",ID);
+}
+
+//Algemene methoden
+void LcdControl::lcdReset()
+{
+ scherm.cls();
+ scherm.locate(0,0);
+}
+
+//Testmethoden
+void LcdControl::lcdTest(float temp)
+{
+ scherm.cls();
+ scherm.printf("%f", temp);
+}
\ No newline at end of file