v.0.0.2 number_to_bitarray_msb
This commit is contained in:
20
src/main.cpp
20
src/main.cpp
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user