I know its a real long shot but has anyone had success with this display (https://www.buydisplay.com/spi-1280x400-7-84-ips-tft-lcd-module-with-ra8876-capacitive-touch-panel) ?
I have tried contacting buydisplay but they cant help.
The display is based on the RA8876 chip and im having trouble getting it to work (ive got RA8875 displays using sumotoys lib to work great in the past just this one if confusing me)
Ive tried the library located from this thread (https://forum.pjrc.com/threads/58565-RA8876LiteTeensy-For-Teensy-T36-and-T40)
Ive altered the Ra8876_Lite.h file changing the following blocks
The teency seems to work and speak to the RA8876 but the display just stays blank. The SPI is wired up correctly and its being powered with 3.3v (reg set on the display to 3.3v), but no matter what i do the display stays black (the backlight is on)
Ive even tried RAIOs code for the arduino due (wired upto a due instead of a teency3.6 and with the same mods in the librarys header file i get the exact same result.
The serial monitor for the Due reports
Can anyone help at all? Or should i buy another display in case i got a faulty one?
Kind Regards
Trev
I have tried contacting buydisplay but they cant help.
The display is based on the RA8876 chip and im having trouble getting it to work (ive got RA8875 displays using sumotoys lib to work great in the past just this one if confusing me)
Ive tried the library located from this thread (https://forum.pjrc.com/threads/58565-RA8876LiteTeensy-For-Teensy-T36-and-T40)
Ive altered the Ra8876_Lite.h file changing the following blocks
Code:
#define OSC_FREQ 10 // OSC clock frequency, unit: MHz.
#define DRAM_FREQ 100 // SDRAM clock frequency, unit: MHz.
#define CORE_FREQ 100 // Core (system) clock frequency, unit: MHz.
#define SCAN_FREQ 50 // Panel Scan clock frequency, unit: MHz.
Code:
#define W9825G6JH
Code:
/*TFT timing configure*/
#define TFT_MODE 0 //0:SYNC_mode(SYNC+DE mode), 1: DE mode //if sync only mode do not connect DE signal or XDE_INV = 1
#define XHSYNC_INV 0 // 0:no inversion, 1:inversion
#define XVSYNC_INV 0 // 0:no inversion, 1:inversion
#define XDE_INV 0 // 0:no inversion, 1:inversion
#define XPCLK_INV 1 // 0:no inversion, 1:inversion
#define HPW 24 //lcdHsyncPulseWidth
#define HND 160 //lcdHorizontalNonDisplay
#define HDW 400
#define HST 160 //lcdHsyncStartPosition
#define VPW 2 //lcdVsyncPulseWidth
#define VND 10 //lcdVerticalNonDisplay
#define VDH 1280
#define VST 12 //lcdVsyncStartPosition
#define SCREEN_WIDTH 400
#define SCREEN_HEIGHT 1280
#define PAGE1_START_ADDR 0
#define PAGE2_START_ADDR 400*1280*2
#define PAGE3_START_ADDR 400*1280*2*2
#define PAGE4_START_ADDR 400*1280*2*3
#define PAGE5_START_ADDR 400*1280*2*4
#define PAGE6_START_ADDR 400*1280*2*5
#define PAGE7_START_ADDR 400*1280*2*6
#define PAGE8_START_ADDR 400*1280*2*7
#define PAGE9_START_ADDR 400*1280*2*8
#define PAGE10_START_ADDR 400*1280*2*9
#define PATTERN1_RAM_START_ADDR 400*1280*2*10
#define PATTERN2_RAM_START_ADDR (400*1280*2*10)+(16*16*2)
#define PATTERN3_RAM_START_ADDR (400*1280*2*10)+(16*16*2)+(16*16*2)
/*DMA picture data start address*/
#define WP1_ADDR 0
#define WP2_ADDR 400*1280*2
#define WP3_ADDR 400*1280*2*2
#define WP4_ADDR 400*1280*2*3
#define WP5_ADDR 400*1280*2*4
#define WP6_ADDR 400*1280*2*5
The teency seems to work and speak to the RA8876 but the display just stays blank. The SPI is wired up correctly and its being powered with 3.3v (reg set on the display to 3.3v), but no matter what i do the display stays black (the backlight is on)
Ive even tried RAIOs code for the arduino due (wired upto a due instead of a teency3.6 and with the same mods in the librarys header file i get the exact same result.
The serial monitor for the Due reports
Code:
RA8876 Lite
mydebug
RA8876 or RA8877 connect pass!
RA8876 or RA8877 initial Pass!
RA8876 or RA8877 Pass!
Can anyone help at all? Or should i buy another display in case i got a faulty one?
Kind Regards
Trev