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
LcdControl.cpp
- Committer:
- RobinMechele
- Date:
- 2018-03-13
- Revision:
- 0:29eeb74e55c6
- Child:
- 1:db9b9bec0133
File content as of revision 0:29eeb74e55c6:
#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);
}