sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

RA8875 library b11 [early release]

Wiki added! https://github.com/sumotoy/RA8875/wiki
This is the last stable release, the very last 'development' version is here:
https://github.com/sumotoy/RA8875/tree/0.70b11
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...

0.70b11p2 changes...

0.70b11p3 changes...

0.70b11p4 changes...

0.70b11p5 changes...

0.70b11p6 changes...

Current beta tested only with:

Not Working?

I have tested 0.70b11 with several CPU and worked:

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 https://github.com/sumotoy/RA8875/wiki/How-to-convert-a-font
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 !!!

Description

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 buydisplay.com, 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...

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:
https://github.com/sumotoy/RA8875/wiki/Teensy-3.1---Working-with-PJRC-Audio-Board-with-SD-card-and-RA8875

Disclaim

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

Licensing

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) gmail.com

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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
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 <http://www.gnu.org/licenses/>.