v.0.1.2 MATRIX_ROWS & MATRIX_COLS
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
#include <LedMatrix.h>
|
||||
#include <mathematics.h>
|
||||
|
||||
LedMatrix matrix;
|
||||
const uint8_t MATRIX_ROWS = 64;
|
||||
const uint8_t MATRIX_COLS = 64;
|
||||
|
||||
LedMatrix matrix(MATRIX_ROWS, MATRIX_COLS);
|
||||
|
||||
#ifdef USE_FONT_5x7
|
||||
const uint8_t _fontWidthPixel = 5;
|
||||
@@ -27,7 +30,6 @@ void printCharMatrixSimple(char c)
|
||||
const u_int8_t font_height = 16;
|
||||
#endif
|
||||
const auto *fontData = fontData_.data();
|
||||
|
||||
Serial.print("<");
|
||||
Serial.print(c);
|
||||
Serial.println(">");
|
||||
@@ -52,7 +54,7 @@ void printCharMatrixSimple(char c)
|
||||
}
|
||||
Serial.println(mtrx);
|
||||
|
||||
matrix.drawText(64 - font_height - 1, 64 - _fontWidthPixel - 1, &c, CRGB::YellowGreen);
|
||||
matrix.drawText(MATRIX_COLS - _fontWidthPixel - 1, MATRIX_ROWS - font_height - 1, &c, CRGB::YellowGreen);
|
||||
matrix.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user