change numbers pivoting? set cursor on the right of the screen

hi

i want to place a number that allways is on the right of the screen independent of his lenght

is there a easy way?

edit: sorry for my bad english or wrong subforum. but the question is easy: text aligment to the right. better with adafruitgfx fonts, but not necesary

What is easy and what is not?

Railroader:
What is easy and what is not?

hehehe good question
im not programer, then:
easy: a code or library that sets the reference point of the font to the right
hard: programing a counter from 0-9 and something +1 on the left or something
_D

You're up for difficulties.
Your post looks like a joke. There's no what so ever technical info, no links to the stuff You intend to use, no wiring, no attempt regarding code, no presentation of the idea.

Railroader:
You're up for difficulties.
Your post looks like a joke. There's no what so ever technical info, no links to the stuff You intend to use, no wiring, no attempt regarding code, no presentation of the idea.

lol
you dont need nothing more, and no useless information

is a simple number on the right on the screen
that will increase/decrease cause a sensor, module or whatever

and i want to place the number there
what do you dont understand? i made a picture

lol

A simple number..... Use a small piece of paper and a strip of tape. That works regardless of the type of display, code etc.

Railroader:
A simple number..... Use a small piece of paper and a strip of tape. That works regardless of the type of display, code etc.

type of display? lol i made a picture, and more is useless information
like the code

a simple number on the display

here, only for you, a simple number:

display.setCursor(124, 63);
display.print(simplenumberINT);

Pictures are made by artists and hung on the wall. Engineers make wiring diagrams, code, presents what's have been done.

Railroader:
Pictures are made by artists and hung on the wall. Engineers make wiring diagrams, code, presents what's have been done.

lol
the useless information is more for artists than engineers

you dont need more information and no presentation is needed, instead you are a flammer.
is only a number on the screen i want to display print there

pixelangelo3d:
the useless information is more for artists than engineers

You appear being an artist to me, having really odd ideas about technical information....

What's wrong with the 2 line suggestion You made? Use it!

Railroader:
You appear being an artist to me, having really odd ideas about technical information....

What's wrong with the 2 line suggestion You made? Use it!

then is not so easy what im asking for, and/or you dont have no idea (excuse me engineer lol)
and thats becuase your asking for wiring ¿? code ¿? ... lol

for 2+2 you dont need more tecnical information, or for a simple printscreen on the right

@pixelangelo3d
Good night.

If I were doing this I would use sprintf to print to a char array, then I would search for the null terminator, which would tell me how many characters there were to print. Knowing that I would set the cursor on the appropriate part of the display and then print the contents of the char array onto the display.

I suspect from your question and comments that your skill level isn't up to doing this yet, but I hope I have given you something to aim for.

Give my suggestion a try and see what happens.

PerryBebbington:
If I were doing this I would use sprintf to print to a char array, then I would search for the null terminator, which would tell me how many characters there were to print. Knowing that I would set the cursor on the appropriate part of the display and then print the contents of the char array onto the display.

I suspect from your question and comments that your skill level isn't up to doing this yet, but I hope I have given you something to aim for.

Give my suggestion a try and see what happens.

thanks, i will read it again, and google what you wrote lol
and yes, my skill level are 0 :slight_smile:
(maybe i was in wrong subforum btw, but)

but for ""align to the right" is not needed more tecnical information, codes or wire.
.....and the keyword to search in google was "allign to the right" and didnt remember -lol with bad english I failed googleing-

i will google again.

thanks and thanks to be nice

cheers

edit : need to change library? still googleing. anchor point, another keyword lol
https://forum.arduino.cc/index.php?topic=707953.0

Try ' right justified c++ '

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