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:
- 5:665ba017d54e
- Parent:
- 1:db9b9bec0133
--- a/LcdControl.cpp Fri Mar 16 16:31:32 2018 +0000
+++ b/LcdControl.cpp Sun Mar 18 13:29:52 2018 +0000
@@ -6,26 +6,25 @@
//Constructor
}
-//Unieke methoden voor setup.cpp
-
void LcdControl::printMode()
{
- scherm.cls();
- scherm.locate(0,0);//bereik x: 0-X, y: 0-23
+ lcdReset();
scherm.printf("Use Joystick to choose mode");
scherm.locate(6,13);
scherm.printf("Master <- -> Slave");
scherm.locate(0,23);
}
-void LcdControl::printSlave()
+void LcdControl::printMasterSlave(int mode)
{
- scherm.printf("Mode: Slave");
-}
-
-void LcdControl::printMaster()
-{
- scherm.printf("Mode: Master");
+ if(mode == 0)
+ {
+ scherm.printf("Mode: Slave");
+ }
+ else
+ {
+ scherm.printf("Mode: Master");
+ }
}
void LcdControl::printID(int ID)
@@ -33,14 +32,12 @@
scherm.printf("ID = %d",ID);
}
-//Algemene methoden
void LcdControl::lcdReset()
{
scherm.cls();
scherm.locate(0,0);
}
-//Slave methode
void LcdControl::lcdSlave(char* text)
{
lcdReset();