Do not alter the size in User_Setup.h.setRotation(0) for Portrait.Just fillScreen(BLACK) and then drawRect(50, 50, 100, 100, WHITE)See where the rectangle is drawn.Then alter the x, y to get to the top left hand corner of your screen.And alter the w, h to get the white rectangle at the full size of your screen.I have never heard of 240x480. 240x320, 240x400, 272x480, 320x480, ... are common sizes.Report back with the values of x, y, w, h that worked.It should be easy to get your display working. But only when we have accurate information.David.
Y = is not define today, (value between 0 to 80).
I do not think other guy want my specific library for my specific use.Maybe someone have same problem : need use bigger screen than material windows allow and create a "frame".Thank you for yours answers
Use a bridge pattern.Create a class with the same methods as the class of your previous display and make each method call the appropriate method of the class for the new display, with the needed parameter conversions.Or create this class as a subclass of the class for the new display.This may sound cryptic for a Newbie.
Maybe you can try this 240 x 400 px display screen3.2' Nextion Intelligent Smart Serial Touch TFT LCD Screen Module For Arduinoor search about Nextion NX4832T035_011