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-18
- Revision:
- 5:665ba017d54e
- Parent:
- 1:db9b9bec0133
File content as of revision 5:665ba017d54e:
#include "lcdcontrol.h"
C12832A1Z scherm(p5, p7, p6, p8, p11);
LcdControl::LcdControl()
{
//Constructor
}
void LcdControl::printMode()
{
lcdReset();
scherm.printf("Use Joystick to choose mode");
scherm.locate(6,13);
scherm.printf("Master <- -> Slave");
scherm.locate(0,23);
}
void LcdControl::printMasterSlave(int mode)
{
if(mode == 0)
{
scherm.printf("Mode: Slave");
}
else
{
scherm.printf("Mode: Master");
}
}
void LcdControl::printID(int ID)
{
scherm.printf("ID = %d",ID);
}
void LcdControl::lcdReset()
{
scherm.cls();
scherm.locate(0,0);
}
void LcdControl::lcdSlave(char* text)
{
lcdReset();
scherm.printf(text);
}