I am using a TFT Touch screen on an Arduino Mega, with UTFT and UTouch libraries. When I use the code below, the text is aligning to right, all the way to the edge of the screen. Is it possible to give it a margin?

tft.print("Text", RIGHT,12)

Thank you, Andi

  • 1
    tft.print("Text ", RIGHT,12)
    – Majenko
    Apr 18, 2020 at 21:33
  • That's interesting workaround. I realise now that I didn't think my question through, because I will also need it with integers. Is there a similar workaround I can do with those? Apr 23, 2020 at 19:53


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.