Skip to content

Commit

Permalink
Merge pull request #640 from jg1uaa/oled-userdb
Browse files Browse the repository at this point in the history
fix scroll direction
  • Loading branch information
g4klx authored Sep 25, 2020
2 parents 4ffc5cd + 9bf68e2 commit 9ccc949
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 9ccc949

Please sign in to comment.