mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Add an error display.
This commit is contained in:
parent
a3c25766c0
commit
b19c46ff2c
11 changed files with 74 additions and 3 deletions
13
HD44780.cpp
13
HD44780.cpp
|
|
@ -68,6 +68,19 @@ void CHD44780::setIdle()
|
|||
::lcdPuts(m_fd, "Idle");
|
||||
}
|
||||
|
||||
void CHD44780::setError(const char* text)
|
||||
{
|
||||
assert(text != NULL);
|
||||
|
||||
::lcdClear(m_fd);
|
||||
|
||||
::lcdPosition(m_fd, 0, 0);
|
||||
::lcdPuts(m_fd, "MMDVM");
|
||||
|
||||
::lcdPosition(m_fd, 0, 1);
|
||||
::lcdPrintf(m_fd, "%s ERROR", text);
|
||||
}
|
||||
|
||||
void CHD44780::setLockout()
|
||||
{
|
||||
::lcdClear(m_fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue