Hi All,
I have this screen and I cannot use the fonts with it.
The following code works, displaying 'Hello' ( the font is too big however)
but when I uncomment line 43 (display.setFont(&FreeMono18pt7b)
The display produces a series of dashes ion the top line instead of letters
I have experimented with several fonts but they all come out illegible - except the default font!
Any ideas?
Thanks!
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <FastLED.h>
//#include <Fonts/Tiny3x3a2pt7b.h>
//#include <Fonts/FreeSerif9pt7b.h>
#include <Fonts/FreeMono18pt7b.h>
#define LED_PIN 6 //Data In pin
#define NUM_LEDS 64
#define BRIGHTNESS 64
CRGB leds[NUM_LEDS];
// Define the LED matrix dimensions and specify the display object
#define MATRIX_WIDTH 32
#define MATRIX_HEIGHT 8
Adafruit_NeoMatrix display = Adafruit_NeoMatrix(MATRIX_WIDTH, MATRIX_HEIGHT, LED_PIN,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG,
NEO_GRB + NEO_KHZ800);
void setup() {
FastLED.addLeds<NEOPIXEL, LED_PIN>(leds, NUM_LEDS);
FastLED.setBrightness(BRIGHTNESS);
display.begin(); // Initialize the display object
display.setRotation(0); // Set the rotation (0, 1, 2, or 3)
}
void loop() {
display.fillScreen(0); // Clear the display
display.setTextColor(display.Color(255, 255, 255)); // Set text color (white)
//display.setFont(&FreeMono18pt7b);
display.setTextSize(1); // Set text size
// Print the text on the LED matrix
display.setCursor(0, 0);
display.print("Hello, World!");
display.show(); // Update the display
delay(1000); // Delay for 1 second before clearing the display
}