From 3e57580589b7e103bf890151ea5fcac7f0aeecad Mon Sep 17 00:00:00 2001 From: Jens Noack Date: Tue, 6 Oct 2020 07:29:45 +0200 Subject: [PATCH] Fixed wrong color value --- vscode/OmobiLEDdisplay/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode/OmobiLEDdisplay/src/main.cpp b/vscode/OmobiLEDdisplay/src/main.cpp index e7c2248..bd456ee 100644 --- a/vscode/OmobiLEDdisplay/src/main.cpp +++ b/vscode/OmobiLEDdisplay/src/main.cpp @@ -205,7 +205,7 @@ void disp_start_set() text_pass = 0; if(text_sets.sets[text_curr_nr].text !='\0' && text_sets.sets[text_curr_nr].active == true) { - Serial.printf("[%lu] Set %d. Runtime %lu. Text:'%s'\n", millis(), text_curr_nr, text_sets.sets[text_curr_nr].time_ms, text_sets.sets[text_curr_nr].text); + Serial.printf("[%lu] Set %d. Runtime %d. Text:'%s'\n", millis(), text_curr_nr, text_sets.sets[text_curr_nr].time_ms, text_sets.sets[text_curr_nr].text); matrix.fillScreen(0); textpixel = 6*strlen(text_sets.sets[text_curr_nr].text); switch(text_sets.sets[text_curr_nr].align) @@ -230,8 +230,8 @@ void disp_start_set() void show_matrix(const char* text, int pos, uint16_t color) { - //Serial.printf("TEXT: %s (pos=%d, color=%d)\n", text, pos, color); - matrix.setTextColor(color); + Serial.printf("TEXT: %s (pos=%d, color=%d)\n", text, pos, color); + matrix.setTextColor(colors[color]); matrix.setCursor(pos, 0); matrix.print(text); matrix.show();