Skip to content

sixeight7/ER-TFTM0784-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

///////////////////////////////////////////////////////////////////////////////

Display library for EASTRISING 1280x400 TFT LCD (model ER-TFTM0784-1) 

Product URL:

https://www.buydisplay.com/spi-1280x400-7-84-ips-tft-lcd-module-with-ra8876-capacitive-touch-panel

///////////////////////////////////////////////////////////////////////////////

Original library: https://github.com/caiannello/ER-TFTM0784-1
Edited by C.Feddema aka sixeight7.

-------------------------------------------------------------------------------
The module has three main controllers on it:
-------------------------------------------------------------------------------

    RA8876:     Main display controller which does the graphics and text.
                It has attached 16MB SDRAM and can do DMA to move graphics
                around and stuff.

                It can use any of the following communications schemes:
                    
                    * SPI 4-Wire (up to ~50Mhz if wires are short)
                    * 8080 Parallel, 16 bit (needs a TON of IO PINS)
                    * 8080 Parallel, 8 bit

    SSD2828:    Low-level MIPI LCD driver. SPI interface. Needs to be 
                sent some configuration data on powerup, and it can be
                ignored after that.

    GT911:      Capacitive touch panel controller. I2C interface + 1 Interrupt
                flag output pin. 

-------------------------------------------------------------------------------
NOTE
-------------------------------------------------------------------------------

I ordered mine configured for 3.3V and SPI interface. It draws around 300 mA 
at this voltage, so it can't be powered directly by any Arduino. An external 
power supply is necessary. OR, you can configure it for 5V and not worry about 
it. 
        
I did my development and testing on an Arduino DUE, hence the 3.3V, but the 
code should work on other Arduinos or Teensy with minimal modification.

-------------------------------------------------------------------------------
CONNECTING AN ARDUINO DUE IN SPI MODE
-------------------------------------------------------------------------------

SSD2828 Panel Driver 

    /CS             24
    RESET           25
    SDI             26
    SCLK            27

GT911 Touch Screen

    SDA             28
    SCL             29
    INT             30
    RESET           31

RA8876 LCD Controller

    RESET           34
    /CS             10
    SDI             109 (Arduino DUE ISP port MOSI pin)
    SDO             108 (Arduino DUE ISP port, MISO pin)
    SCLK            110 (Arduino DUE ISP port, SCK pin)

-------------------------------------------------------------------------------
CONNECTING AN ARDUINO DUE IN 16-BIT 8080 PARALLEL MODE
-------------------------------------------------------------------------------

SSD2828 Panel Driver 

    /CS             24
    RESET           25
    SDI             26
    SCLK            27

GT911 Touch Screen

    SDA             28
    SCL             29
    INT             30
    RESET           31

RA8876 LCD Controller

    RESET           34
    RS              33
    /CS             34
    WR              35
    RD              36
    D0              38          
    D1              39
    D2              40
    D3              41
    D4              42
    D5              43
    D6              44
    D7              45
    D8              46
    D9              47
    D10             48
    D11             49
    D12             50
    D13             51
    D14             52
    D15             53

-------------------------------------------------------------------------------
EXAMPLES
-------------------------------------------------------------------------------

demo.ino     - Demonstrates the RA8876 graphics.

-------------------------------------------------------------------------------
HELP WANTED
-------------------------------------------------------------------------------

There is much room for improvement and optimization here, so please
lend a hand.

Sixeight7: Made it into a proper library. Improved speed of writing pictures. Changes in configuration of 2626 file with aid of Buydisplay.
Also use the goodix library for the touch screen.

---

About

Arduino library for the 1280x400 TFT LCD + Touchscreen from BuyDisplay.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%