Change writeFusion function to explicit display sizes
This commit is contained in:
parent
14aae85c7e
commit
bced1c4214
|
@ -249,13 +249,16 @@ void CHD44780::writeFusion(const char* source, const char* dest)
|
||||||
|
|
||||||
void CHD44780::clearFusion()
|
void CHD44780::clearFusion()
|
||||||
{
|
{
|
||||||
if (m_rows > 2U) {
|
if (m_rows == 2U && m_cols == 16U) {
|
||||||
|
::lcdPosition(m_fd, 0, 1);
|
||||||
|
::lcdPrintf(m_fd, "%.*s", m_cols, LISTENING);
|
||||||
|
} else if (m_rows == 4U && m_cols == 20U) {
|
||||||
::lcdPosition(m_fd, 0, 1);
|
::lcdPosition(m_fd, 0, 1);
|
||||||
::lcdPrintf(m_fd, "%.*s", m_cols, LISTENING);
|
::lcdPrintf(m_fd, "%.*s", m_cols, LISTENING);
|
||||||
|
|
||||||
::lcdPosition(m_fd, 0, 2);
|
::lcdPosition(m_fd, 0, 2);
|
||||||
::lcdPrintf(m_fd, "%.*s", m_cols, " ");
|
::lcdPrintf(m_fd, "%.*s", m_cols, " ");
|
||||||
} else {
|
} else if (m_rows == 2 && m_cols == 40U) {
|
||||||
::lcdPosition(m_fd, 0, 1);
|
::lcdPosition(m_fd, 0, 1);
|
||||||
::lcdPrintf(m_fd, "%.*s", m_cols, LISTENING);
|
::lcdPrintf(m_fd, "%.*s", m_cols, LISTENING);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue