Commit f7ba951e authored by Alexander Detsch's avatar Alexander Detsch 🐘
Browse files

adapted for multi-message-operation

parent cd774e3a
......@@ -143,10 +143,10 @@ void Dotmatrix::schedule() {
if (Time::millis() >= scheduleLast + TEXT_SCROLL_SPEED) {
showChar();
scheduleLast = Time::millis();
if (messageDisplayed < REPEAT_TEXT) {
if (messageDisplayed >= REPEAT_TEXT) {
messageDisplayed = 0;
//mode++;
if (mode > MAX_MESSAGES) mode = 0;
mode++;
if (mode >= MAX_MESSAGES) mode = 0;
scheduleState = STATE_INIT;
clearScreen();
}
......
......@@ -16,7 +16,7 @@
// Change these values to adjust scroll speeds and animation iterations
#define TEXT_SCROLL_SPEED 100 // how fast to scroll the text
#define REPEAT_TEXT 5 // how often to repeat the text if in cycling mode
#define REPEAT_TEXT 1 // how often to repeat the text if in cycling mode
// How to add a new message:
// * add the new message (only upper case, see font.h)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment