R4 LED matrix formatting for alpha/numeric

I am sending a number string (pulse count) to the LED matrix (ie:123) but it is shifted to the right by 2 led columns, so the last character gets cut off. is there a way to shift it over 2 columns? It can also scroll, but I prefer it to be stationary.

See the matrix code below:

//pulseCount to matrix  
      matrix.beginText();
      matrix.stroke(0xFFFFFFFF);
      matrix.textFont(Font_5x7);
      matrix.beginText(0, 1, 0xFFFFFF );
      matrix.print("");
      matrix.println(pulseCount)

> Blockquote

;
      matrix.endText();

You should post your complete sketch and a photo of the issue you are describing.

You are using a 5x7 font on a display that is 12 columns wide, you will not be able to display three characters at once, so scrolling will be necessary.

This is what I expected. (Scrolling solution)
But do not understand why the first column is blank, when the 3rd character fills the last two columns and is cut off. It displays 2 1/2 characters. The text is not centered in the matrix. I tried a 4 x 6 font and it displays all 3 characters so long as the first is a 1.

Even a two number string is not centered, but left justified. Not a big deal, is there a way to center justify?

Am guessing the random justification is just a quirk with the LED matrix?

not likely to get more than guesses without a complete code listing as well as a schematic of how you wired the matrix

If you want two digits centered on the display, you will need to do that in your code. There is no automated text centering.

That is something you are causing. Directly printing an integer will not produce a leading space, but you have not shown us what pulseCount is or how you are manipulating it before printing.

A .JPG is worth 2^10 words.

Sorry, I should have posted this to the UNO R4 forum. (The R4 has a built in LED matrix)

Most people seem to use scrolling text or graphics on the matrix. I have not seen any code from programmers just displaying fixed text/numbers on the R4. The matrix randomly right or left justifies the text.

The pulseCount is just a numeric string; 123 etc...

Switching to a smaller 4 x 6 font solved my immediate problem.

The code will put the 4x6 character in its place, not in a random location.

Most programmers want more than two (5x8) characters.

We need to see All of your code so that we can try it ourselves.

That is how we can solve things for you.

Please cooperate.

You can move it there yourself you know. Move your pointer over the title of your opening post and a large black icon of a pence will appear. Click on that and you can choose the location of the thread.

Just a heads up. The OP has indicated that this is a commercial project and is not willing to share code for this project.

Hi @1claya.

Please provide a minimal Arduino sketch that demonstrates this problem. A minimal demonstration will allow you to avoid sharing your precious real project code while also making it easier for us to support you, so it is a win all around.

Please also provide a detailed description of the behavior you expect from that minimal program, and exactly what you observe in the matrix when the program is running on the board that does not match your expectations.

The OP has told me in a PM that he considers that option a waste of time.