I would like to introduce a very simple program which do mapping the default linux frame buffer '/dev/fb0' to a TFT on raspberry pi via SPI-DMA. It takes only 3% CPU at 20fps and can increase frame rate even more than 60fps as well in expense of a bit more cpu.
1> Easy to understand the simple user space code unlike any kernel module.
2> Zero dependency, just three files main.c, spi.c, gpio.c !!!
3> No need of any extra kernel module/driver except the default bcm spi driver.
4> Can zoom out or negative zoom by setting high resolution using fbset. This helps to do negative zooming and more display area but reduces readability.
5> Auto display adjusting for any resolution.
6> Support mplayer video playing, rtsp- ip camera streaming , pygame rendering, X - GUI etc.
RASPBERRY PI ZERO
TFT ST7735R 160x128
Enjoy this project?