v.0.0.2 number_to_bitarray_msb

This commit is contained in:
tiijay
2025-11-03 19:58:32 +01:00
parent 156ce19ec6
commit d138cb9763
4 changed files with 66 additions and 19 deletions

View File

@@ -10,10 +10,9 @@ void printCharMatrixSimple(char c)
{
const uint8_t *fontData = getFontChar(c);
Serial.println();
Serial.print("'");
Serial.print("<");
Serial.print(c);
Serial.println("':");
Serial.println(">");
String mtrx = "";
for (int row = 0; row < 7; row++)
@@ -24,16 +23,13 @@ void printCharMatrixSimple(char c)
if (line & (1 << (4 - col)))
{
mtrx += "";
Serial.print("#"); // Einfaches # für Pixel
}
else
{
mtrx += ".";
Serial.print("."); // Punkt für leere Pixel
}
}
mtrx += "\n\r";
Serial.println();
}
Serial.println(mtrx);
}
@@ -71,13 +67,15 @@ void setup()
matrix.show();
// Draw static "HELLO WORLD"
matrix.drawText(1, 1, "Hello", CRGB::Red);
matrix.drawText(35, 1, "World", CRGB::Blue);
matrix.drawText(1, 20, "<°|`¶>", CRGB::Yellow);
matrix.drawText(1, 30, "Bottom", CRGB::Yellow);
// matrix.drawText(1, 1, "Hello", CRGB::Red);
// matrix.drawText(35, 1, "World", CRGB::Blue);
// matrix.drawText(1, 20, "<°|`¶>", CRGB::Yellow);
// matrix.drawText(1, 30, "Bottom", CRGB::Yellow);
matrix.drawText(1, 40, "ABCDEFGHIJ.", CRGB::Yellow);
matrix.show();
// printCharMatrixSimple('S');
printCharMatrixSimple('S');
matrix.number_to_bitarray_msb(0x8F);
// playWithBlinkLed();
}