Forked LEDMatrix and added horizontal scrolling
Fork of LEDMatrix by
Diff: LEDMatrix.h
- Revision:
- 4:40d4afefcd74
- Parent:
- 3:1e06e89bc0c9
- Child:
- 5:334fc002e200
diff -r 1e06e89bc0c9 -r 40d4afefcd74 LEDMatrix.h --- a/LEDMatrix.h Thu Jan 14 16:52:04 2016 +0000 +++ b/LEDMatrix.h Fri Jan 15 09:50:10 2016 +0000 @@ -40,7 +40,7 @@ * @param number panels' number */ void begin(uint8_t *pDisplayBuf, uint16_t width, uint16_t height, uint16_t scrollWidth, - uint16_t numLines, int charSeparation = 1, int flashRate = 8); + uint16_t numLines, int charSeparation = 1, int flashRate = -1, int scrollRate = -1); /** * draw a point - origin is like a graph with 0,0 at the lower-left corner @@ -92,6 +92,8 @@ int displayLargeDigit(int curX, int curY, char ch); int displayLine(int lineIdx, const char* line); + void setScrollRate(int rate); + void setFlashRate(int rate); void setAlert(int lineIdx, bool alertOn); // Called frequently and regularly to handle effects like scrolling @@ -117,6 +119,8 @@ int _flashCounter; int _flashRate; bool _flashState; + int _scrollCounter; + int _scrollRate; }; #endif