From 449d681c7b33ab5c3a4592c8520afa4d7989fc42 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Mon, 30 Sep 2019 19:44:49 +0200 Subject: [PATCH] LEDmatrixdisplay.cpp/.h rename scrollfunction --- include/ledmatrixdisplay.h | 2 +- src/ledmatrixdisplay.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ledmatrixdisplay.h b/include/ledmatrixdisplay.h index b7ec5a3b..b2863146 100644 --- a/include/ledmatrixdisplay.h +++ b/include/ledmatrixdisplay.h @@ -13,6 +13,6 @@ void refreshTheMatrixDisplay(bool nextPage = false); void DrawNumber(String strNum, uint8_t iDotPos = 0); uint8_t GetCharFromFont(char cChar); uint8_t GetCharWidth(char cChar); -void ScrollLeft(uint8_t *buf, const uint16_t cols, const uint16_t rows); +void ScrollMatrixLeft(uint8_t *buf, const uint16_t cols, const uint16_t rows); #endif \ No newline at end of file diff --git a/src/ledmatrixdisplay.cpp b/src/ledmatrixdisplay.cpp index 881f57fe..e33ea6e0 100644 --- a/src/ledmatrixdisplay.cpp +++ b/src/ledmatrixdisplay.cpp @@ -94,7 +94,7 @@ void refreshTheMatrixDisplay(bool nextPage) { if (col < (LED_MATRIX_WIDTH - 1)) col++; else - ScrollLeft(displaybuf, LED_MATRIX_WIDTH, LED_MATRIX_HEIGHT); + ScrollMatrixLeft(displaybuf, LED_MATRIX_WIDTH, LED_MATRIX_HEIGHT); } else matrix.drawPoint(col, row, 0); // clear current dot @@ -204,7 +204,7 @@ uint8_t GetCharWidth(char cChar) { return CharDescriptor.width; } -void ScrollLeft(uint8_t *buf, const uint16_t cols, const uint16_t rows) { +void ScrollMatrixLeft(uint8_t *buf, const uint16_t cols, const uint16_t rows) { uint32_t i, k, idx; const uint32_t x = cols / 8;