Skip to content

Commit

Permalink
fix scroll direction
Browse files Browse the repository at this point in the history
all messages except clearCWInt(), scroll direction is inverted.
almost all languages are written from left to right,
so scrolling direction should be "display new right-side characters".
  • Loading branch information
jg1uaa committed Sep 25, 2020
1 parent e818d0f commit 9bf68e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OLED.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void COLED::setIdleInt()

// m_display.setTextSize(1);
if (m_displayScroll && m_displayLogoScreensaver)
m_display.startscrolldiagright(0x00,0x0f); //the MMDVM logo scrolls the whole screen
m_display.startscrolldiagleft(0x00,0x0f); //the MMDVM logo scrolls the whole screen
m_display.display();

unsigned char info[100U];
Expand Down Expand Up @@ -610,7 +610,7 @@ void COLED::writeCWInt()
m_display.setTextSize(1);
m_display.display();
if (m_displayScroll)
m_display.startscrollright(0x02,0x0f);
m_display.startscrollleft(0x02,0x0f);
}

void COLED::clearCWInt()
Expand All @@ -632,7 +632,7 @@ void COLED::close()
m_display.clearDisplay();
m_display.fillRect(0, 0, m_display.width(), 16, BLACK);
if (m_displayScroll)
m_display.startscrollright(0x00,0x01);
m_display.startscrollleft(0x00,0x01);
m_display.setCursor(0,00);
m_display.setTextSize(2);
m_display.print("-CLOSE-");
Expand Down Expand Up @@ -664,5 +664,5 @@ void COLED::OLED_statusbar()
m_display.drawBitmap(0, 0, logo_glcd_bmp, 128, 16, WHITE);

if (m_displayScroll)
m_display.startscrollright(0x00,0x01);
m_display.startscrollleft(0x00,0x01);
}

0 comments on commit 9bf68e2

Please sign in to comment.