Tasmota/lib/lib_display/Xlatb_RA8876-gemu-1.0
s-hadinger 595b7f750d
LVGL fix memory allocation of flush buffers (#21256)
2024-04-23 20:11:01 +02:00
..
RA8876.cpp LVGL fix memory allocation of flush buffers (#21256) 2024-04-23 20:11:01 +02:00
RA8876.h Restore RA8876 SPI speed to 24000000 (#20717) 2024-02-14 10:33:10 +01:00
README.md move libs in folder lib 2020-10-26 12:51:06 +00:00
keywords.txt move libs in folder lib 2020-10-26 12:51:06 +00:00
library.properties fix lvgl touch 2021-04-25 17:28:42 +02:00
spi_register.h move libs in folder lib 2020-10-26 12:51:06 +00:00

README.md

RA8876 Arduino Library

This library is for support for the 1024x600 tft controller over 3 wire SPI. It is based heavily on the Adafruit_ILI9341 library and is designed to work with the Adafruit_GFX library.

I have made some heavy modifications, as the typical Adafruit TFT libraries are designed to work with 16bit color (RGB565), and the RA8876 can only do 24bit (RGB888) color in 4 wire SPI mode. You can still use the library EXACTLY like you would for 16bit mode color, the colors are converted before sending to the display. What this means is, things will be slower than normal. Not only do you have to write twice as many pixels as a normal 240x320 display, 153,600px (320x480) vs 76,800px (240x320), but you also have to do a lightweight conversion on each color, and write 3 bytes vs 2bytes per pixel.

For this reason, I do not recommend an AVR based Arduino for this library, although it will still work. I highly recommend a faster microcontroller based on ARM such as the Teensy, STM32duino, Arduino Zero, or the Arduing Due.

On the STM32duino, DMA is supported and is therefore much faster.