raspberry pi spi tft display supplier
It is a 3.2" display with 320x240 16-bit color pixels and a resistive touch overlay. The plate uses the high speed SPI interface on the Pi and can use the mini display as a console, X window port, displaying images or video etc. Best of all, it is use FPC cable connect with Raspberry Pi.
It is the cutest display for the Raspberry Pi. It features a 3.5" display with 480x320 16-bit color pixels and a resistive touch overlay. It"s designed to fit nicely not only to the Pi Model A or B but also works perfectly fine with the Model B+/2B/3B/4B.
*When working with Raspberry Pi 4, for the system image of Raspberry Pi after 2021-10-30, for example on Bullseye, please modify "dtoverlay = vc4-kms-v3d" to "dtoverlay = vc4-fkms-v3d" in the config file, otherwise it may fail to start. But on Buster, please comment out "dtoverlay = vc4-fkms-V3D" by adding #.
The frame buffer is a memory buffer mapping all the pixels of the screen. Our screen"s resolution is 480x320, and each color is coded on 2 bytes, so it"s simply a 480x320x2 bytes buffer, so we have to write the pixel color at the proper buffer position to have this pixel displayed on the screen.
As said, the screen displays only 65536 colors, so each pixel is coded on 16 bits, using the RGB565 format ( 5 bits for red, 6 bits for green, 5 bits for blue ), here is the way to convert standard 24 bits RGB to 16 bits RGB565 :
I found a nice 8x8 pixels font here and made a few executables to use in scripts. You"ll find my code attached, or you can simply clone it from GitHub and build the various executables :git clone https://github.com/SamuelF94/fbdisplay
» Makerfabs is Open Hardware, Arduino, Raspberry Pi, mbed, BeagleBone, IoT, Smart Home, etc, Related Products& Services Vendor for Makers and new Startups.