Python library for controling raw framebuffer. Written in pure Python.
libpyfb is a low-level framebuffer control library written in Python. This work on all Linux devices, include x86, x86_64 and ARM.
Currently, there is no low-level Python module for direct writing to framebuffer. Pygame still require SDL and other C libraries. Their is also a gist in C about this and also a Go script here
So I made this small library for doing that. Have fun!
Linux Framebuffer can be easily accessed in /dev/fb0. Like any other file, this can be read and write to (if the user in video group). So this library will open fb0, map it to memory and control the screen from that. Each pixel is 4 bytes (32 bit) or 2 bytes (16 bit). These bytes are B, G, R and one transparency bytes.
- Add graphical drawing
- Add mouse and keyboard support
Under MIT license.
And one last thing... Enjoy your 2021!