XPT2046 3.5 screen on console?

Hello people, I hope you’re all doing well !

I’m trying to get this small 3.5 LCD inches display to work. I used this some year ago but I really can’t remember how I did it.
I’ve found a couple of threads here but not quite complete so I figured I’d ask before frying something…

I’ve found some instructions to install an “LCD-Show” driver (or something like that) but that appeared to be meant for a full xorg desktop.

I just want to display the output of a python script at the console…

So, do I need to install all of that or can I just use a “lighter” method? (i.e. framebuffer)

I’ve also found this thread which sounds to me like process for this display could be integrated with the DietPi tools, but I can’t find such thing. Maybe I’m missing something.

My display is a generic 480x320 - XTP2046, not quite matching the 320x280 waveshare2 option in dietpi-display.

host specs:

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=12
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
bookworm 0
Linux DietPi 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
arm64
RPi 4 Model B (aarch64)

Thanks in advance.