Switch from serial LCD to LCD with dtb

Hello everyone,

I’m working on a project, and I needed to switch to a larger display. The program on which I’m working used to display the output on a LCD screen via serial (on UART port 2). I’ve switched to a BBB-EXP-C display, that works with a DTB (on debian). Problem is that the class that handles the output is made for serial. Is it possible to change a few small things to the class that uses serial to get it working on the BBB-EXP-C (like changing port numbers), or do I just need to make a new class for the output and work with something like TKinter?

Sorry for my English and thanks in advance,