LEDTEXT and FASTLED library problems

Hello
I’m starting with this library and I don’t know how to continue,
I would like to know how to place letters without scroll in this code?
i just want to write words without scrolling
Thank you

#include <FastLED.h>

#include <LEDMatrix.h>
#include <LEDText.h>
#include <Font12x16.h>

// Change the next 6 defines to match your matrix type and size

#define LED_PIN        6
#define COLOR_ORDER    GRB
#define CHIPSET        WS2813

#define MATRIX_WIDTH   60
#define MATRIX_HEIGHT  14
#define MATRIX_TYPE    HORIZONTAL_ZIGZAG_MATRIX

cLEDMatrix<MATRIX_WIDTH, MATRIX_HEIGHT, MATRIX_TYPE> leds;

cLEDText CHARMsg;

const unsigned char TxtDemo[] = { EFFECT_FRAME_RATE "\x00"
                                  EFFECT_HSV_AH "\x00\xff\xff\xff\xff\xff"
                                  EFFECT_SCROLL_LEFT "   The "
                                  EFFECT_SCROLL_UP "Quick "
                                  EFFECT_SCROLL_LEFT "Brown "
                                  EFFECT_SCROLL_DOWN "Fox"
                                  EFFECT_SCROLL_LEFT "Jumps "
                                  EFFECT_SCROLL_UP "Over  "
                                  EFFECT_SCROLL_LEFT "The "
                                  EFFECT_SCROLL_DOWN "Lazy  "
                                  EFFECT_SCROLL_LEFT "Dog " };
uint16_t Options;

void setup()
{
  FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds[0], leds.Size());
  FastLED.setBrightness(5);
  FastLED.clear(true);
 
  FastLED.show();

  CHARMsg.SetFont(Font12x16Data);
  CHARMsg.Init(&leds, leds.Width(), CHARMsg.FontHeight() + 1, 0, 0);
  CHARMsg.SetText((unsigned char *)TxtDemo, sizeof(TxtDemo) - 1);
  CHARMsg.SetTextColrOptions(COLR_RGB | COLR_SINGLE, 0xff, 0x00, 0xff);
  Options = INSTANT_OPTIONS_MODE;
  CHARMsg.SetOptionsChangeMode(Options);
}


void loop()
{
  if (CHARMsg.UpdateText() == -1)
  {
    CHARMsg.SetText((unsigned char *)TxtDemo, sizeof(TxtDemo) - 1);
    Options ^= INSTANT_OPTIONS_MODE;
    CHARMsg.SetOptionsChangeMode(Options);
  }
  else
    FastLED.show();
  delay(10);
}

Are there any examples with the libraries that you are using ?

This is an example from the library but I don't know how to continue

Which library is the example from and are there any more for that library ?

Making text scroll seems to be the main purpose of that library. If you don't want scrolling text, perhaps you should use a different library. Or, just "borrow" the fonts and display techniques from that library and use them to write your own non-scrolling code.

This is the library
https://github.com/AaronLiddiment/LEDText
I want to place text in a matrix led with the Fastled library but without scrolling

With neomatrix the numbers do not have a correct form

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.