#include #include #include #include #include LedMatrix matrix; void printCharMatrixSimple(char c) { const uint8_t *fontData = getFontChar(c); Serial.print("<"); Serial.print(c); Serial.println(">"); String mtrx = ""; for (int row = 0; row < 7; row++) { uint8_t line = fontData[row]; for (int col = 0; col < 5; col++) { if (line & (1 << (4 - col))) { mtrx += "•"; } else { mtrx += "."; } } mtrx += "\n\r"; } Serial.println(mtrx); } void playWithBlinkLed() { BlinkInternLed internLed = BlinkInternLed(); String led_status = internLed.ledStatus(); Serial.println("PinStatus: " + led_status); internLed.on(); delay(200); led_status = internLed.ledStatus(); Serial.println("PinStatus: " + led_status); internLed.off(); delay(200); led_status = internLed.ledStatus(); Serial.println("PinStatus: " + led_status); } void setup() { // Initialize Serial for debug output Serial.begin(115200); // Wait for Serial to be ready (important for some boards) while (!Serial) { delay(10); } matrix.setBrightness(255); matrix.clear(); 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, 40, "ABCDEFGHIJ.", CRGB::Yellow); matrix.drawText(1, 40, "Moin u stupid", CRGB::Yellow); matrix.show(); // printCharMatrixSimple('S'); // matrix.number_to_bitarray_msb(0x8F); // playWithBlinkLed(); } void loop() { delay(1000); }