Skip to content
Switch branches/tags


Failed to load latest commit information.
Latest commit message
Commit time

RA8875 library b11 [early release]

Wiki added!
This is the last stable release, the very last 'development' version is here:
The development version has the last changes and bug fixes so please use it!
Moved a lot of 'bla bla' in the wiki, readme cleaned.

Current version 0.70b11, Please read!!!.

0.70b11p1 changes...

  • New optimized User Font Rendering engine, over 23 times faster.
  • Added template & stepByStep wiki for converting fonts with lcd-image-converter.
  • Changed font file scheme, now just one file and support PROGMEM for low memory cpu's.
  • Added more fonts.
  • Added initial support for many other CPU's (ESP, Chipkit, STM32).
  • Text Rendered now correctly follows wrap rules.
  • Fixed setFontScale(x,y), x and y scale was inverted (this can affect code that uses b10)
  • Fixed a bug when scaling it's on with showUserChar
  • Fixed a bug on println for render fonts.(this can affect code that uses b10)
  • Updated many outdated examples.
  • Changed licence from CC to GNU v3

0.70b11p2 changes...

  • Try to fix drawPixel and drawPixels color bug in 8bit mode (RA8875 hardware error).
  • Command useLayers(false) re-enable 16bit bpp as well.

0.70b11p3 changes...

  • Fixed drawPixel and drawPixels for 8bit mode, added _color16To8bpp optimized.

0.70b11p4 changes...

  • Fixed an error in font rendering, I have to add a new parameter in font file so if someone of you have already converted some font with release prior this one you need to update the template of lcd-image-converter with the new one provided in this release and re-convert, just open the .xlm file e 'Convert', new font file will be updated. Haved to upload again all fonts with new scheme but in the hurry I forget to included licenses so I will provide this tomorrow, sorry to font authors!

0.70b11p5 changes...

  • Fixed a bug in Font Rendering Line Optimizer that causes loss pixels in some font. Now works as it should and it's also slight faster.

0.70b11p6 changes...

  • Fixed a stupid error in setFontScale (was inverted), some improvements in several drawings functions, added ER3301_1 font rom.

Current beta tested only with:

  • EastRising RA8875 5"Inch (480x272) with resistive Touch or FT chip capacitive
  • EastRising RA8875 7"Inch (800x480) with FT chip capacitive
  • EastRising RA8875 5"Inch (800x480) with resistive Touch
    All tested with Teensy 3.0, Teensy 3.1, Teensy LC, Arduino DUE, Arduino UNO, Arduino MEGA
    Check 'Proof of working' in wiki.
Not Working?

I have tested 0.70b11 with several CPU and worked:

  • Teensy 3.1
  • Teensy 3.0
  • Teensy LC
  • Arduino UNO
  • Arduino NANO
  • Arduino DUE
  • Arduino MEGA
  • Arduino YUN Display tested:
  • EastRising RA8875 5" (480x272)
  • EastRising RA8875 5" (800x480)
  • EastRising RA8875 7" (800x480)
  • Adafruit (480x272)
  • Adafruit (800x480)
    If your display not works, please check your connections, supply values, etc.
    Remember it's an SPI connection so there's hardware limitations on some CPU, for example DUE can use as CS pin 4,10 or 52, Teensy can use more but not all, 8 Bit arduino can use almost any, etc..
    Still not working? Check my wiki, check carefully!
    When testing, do not connect other devices on the same SPI line! This chip uses SPI mode 3 that it's not compatible with most stuff (check my wiki).
    Are you sure you connect everything fine, settings are ok, you are using the correct CS pin, you don't have any other SPI devices sharing the same line, the display has correct jumper set and you are sure that display it's correct supplied (and the supply it's stable, check also this!) but you still have nothing on screen?
    Ok, in that case you may ask help but you need to double check that you do not make mistakes!
    Please understand that I cannot spend time to fix something that it's not a library fault!!!
Whoah...Too many commands! I'm lost!

Not really, I provided tons of examples. The library it's scalable so it's really easy to use and as you have learned basics the most it's done. Most libraries are so basic that you are able to do just basic stuff but with this you have a lot of power for build even complicated interfaces

Teensy notes:

I love Teensy 3 MCU's, so every library has special features for this micro. You need to read my notes about wiring first. Some examples works only for Teensy 3.

Convert a font

Follow wiki
I'm not the author of the conversion program so please refere to author site for suggestion or bugs!
So please do not open issues for lcd-image-converter here !!!


A Fast and Optimized library for RAiO RA8875 display driver for Teensy 3.x, Teensy LC and Arduino's (and I hope for other MCU's).
This is the first attemp to create a library that use all the features of this chip from scratch and have nothing to share with the Adafruit_RA8875 library.
As always I provide a lot of examples (check video), more coming soon...

This library will work also with the Adafruit board but was mainly coded for the many TFT displays from china makers that use this chip, some are quite good and cheap, like the EastRising from, much cheaper than adafruit.
I'm not related to EastRising or BuyDisplay, in any way, but I appreciate that I don't have to spend a little fortune for DIY stuff.

The goals...

  • All features supported
  • 8 bit and 16 bit color depth support (X)
  • Layer support (now support large screen but only at 256 colors) (X)
  • Scalable complexity, start with basics but you can go trough... (X)
  • Support for the many external ROM Font chip (X)
  • Support for the external SPI FLASH (on develop)
  • Working with Teensy 3.x, Teensy LC, Arduino's, Energia IDE supported MCU's (stellaris, etc.)
  • Correct use of Print, Write and Println (X)
  • Correct use of setCursor to mimic LiquidCrystal library (X)
  • Compatibility with alternative SPI pinouts on Teensy 3.x,Teensy LC, this will let you use it with Audio board! (X)
  • Can use capacitive and resistive touch screen, the capacitive with gesture and max 5 concurrent touches. (X)
  • Full rotation support. (X)
  • External copyright free fonts support plus large font rendering. (X)
  • Support for Keypad Matrix. (still working on)
  • Internal support for IRQ's (done for Touch, still develop for other stuff)
  • Use of BTE (almost done)
  • A lot of examples. (X)

Wiring with your MCU

I support only native SPI.
MOSI,MISO,SCK pins can be different between MCU's (UNO and Teensy3 uses 11,12,13) but DUE and other are different so check!)
For RST it's your choice, it's really possible use any pin. Apparently only Adafruit board need this, the 2 chinese boards I have here have internal reset circuit so it's optional, but I suggest to use it.
For CS pin you have to choose between these pin on Teensy3.1: 2,6,9,10,15,20,21,22,23. Arduino UNO,MEGA and almost all 8 bit variants can use any pin, DUE can use as CS only 4,10 or 52 (please check DUE specifications)
You also need another pin for INT used by Touch Screen (I used pin 2)
From version 0.6, Energia IDE will be supported so many MCU's can be used but should wait 0.6 and since I have only Stellaris LM4F120XL I cannot be sure of the various MCU's wiring so drop me a note, at list I can add to the documentation!

Compatible with PJRC Audio Board! (teensy3.1 only)

Current beta has a optional Teensy instance that can use alternative SPI pinouts, this let you use Audio Board from PJRC that uses the classic SPI pinouts for RX and SD cs. You can test it with Spectrum Analyzer example that uses the Audio Board with a RA8875 TFT screen and thanks to the hardware accelleration of this chip and the use of onchip screen buffer it let you have large screen with touch capabilities with high-end audio manipulation. see wiky:


First, I'm not affiliated or related to any vendor! I've buy all displays and accessories online as everyone else and received 1 in donation
I'm not responsable to any damage or money loss or problem caused by this library, this is an open source project licensed under GNU General Public License v3.0 so I accept all the GNU rules and you should follow too but for commercial products please it's mandatory you contact me first. This library it's only for civil applications, I do not allow to use for any military purposes of any kind


License:GNU General Public License v3.0

RA8875 fast SPI library for RAiO SPI RA8875 drived TFT
Copyright (C) 2014  egidio massimo costa sumotoy (a t)

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <>.


A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark




No packages published