I would like to draw on a non-standard linux frame buffer with python. I have a Odroid C4 SBC running Ubuntu, with a 3.2 inch LCD screen hat. The LCD is 320x240 16-bit color. I do most of my interaction with a monitor connected through hdmi. The screen uses /dev/fb4 as it's framebuffer, and my monitor is on /dev/fb0. I can directly write to /dev/fb4 in different ways and and stuff shows up on the screen. I'd like to use python to draw simple text and images on the small screen but I'm not sure what modules to use and how to point them at /dev/fb4.
I have found various modules that let you draw to the main framebuffer, like pygame, but I haven't been able to find instructions on how to point them at a different framebuffer.
Here are some code snippets to help you create your own code.
It's pretty easy to program your own text-to-pixel routine if you use a monospaced bitmapped font (look into /usr/share/consolefonts/). psf file format is documented in https://en.wikipedia.org/wiki/PC_Screen_Font
Note: writing to a framebuffer is a restricted operation. You must add your username to 'video' group.
If you need more info, please detail your question.
Have fun!