dmd2 print counter right to left side

Hello, my meter is displayed on DMD2 on the P10 led panel but the digits are displayed from the left. What do you need to do to make the meter start displaying from the right towards the left side? Here’s my code:

#include <SPI.h>
#include <DMD2.h>
#include <fonts/Arial_Black_16.h>
#include <fonts/Droid_Sans_24.h>
#include <fonts/Arial14.h>
#include <fonts/MyBigFont.h>

word steps;
SoftDMD dmd(2,1); // DMD controls the entire display
//DMD_TextBox box(dmd, 0, 0);
DMD_TextBox box(dmd, 0, 0, 64, 16);
// the setup routine runs once when you press reset:

void setup()
pinMode(2, INPUT_PULLUP);
attachInterrupt(0, onStep, RISING);

void loop()

void onStep()
static unsigned long lastTime;
unsigned long timeNow = millis();
if (timeNow - lastTime < 50)

lastTime = timeNow;


We managed to display numbers on the right side, unfortunately another problem of changing digits does not appear on the garbage display. I tried to use the function "dmd.clearScreen ();" but the display is quite blank. At the time of counting it displays the digits for a fraction of a second.

dmd.drawString( 5, 0, dmdBuff );"

The problem with this panels is that the 0,0 is located at the top/left of the display. Perhaps is not convenient to use box.print. Instead you can use dmd.drawstring with the position you want. Sorry for my english