Hi,
I have just received the adafruit module RA8875 and I am testing it with a tft sharp LQ043T1DG03 using the texmode sketch of the Adafruit_RA8875 library in version 1.04, I have powered the RA8875 module in 3.3v, the connected contacts are the following:
CS = 10
MOSI = 11
MISO = 12
SCK = 13
RST = 9
sketch:
i have always RA8875 not found ! in serial console.
May be my tft is not compatible with the module RA8875 from adafruit ?
i have searched on the code from file Adafruit_RA8875.cpp, the error is in line
x return always 0, if i comment the code from reaReg or i put return true, nothing happens, the screen is black.
what is 0x75 code ?
i have tested too the library from sumotoy RA8875 Version:0.70b11p7, but when i compile, it say that teensy is not supported or my hardware is not supported yet
Any idea ?
I have just received the adafruit module RA8875 and I am testing it with a tft sharp LQ043T1DG03 using the texmode sketch of the Adafruit_RA8875 library in version 1.04, I have powered the RA8875 module in 3.3v, the connected contacts are the following:
CS = 10
MOSI = 11
MISO = 12
SCK = 13
RST = 9
sketch:
Code:
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_RA8875.h"
// Library only supports hardware SPI at this time
// Connect SCLK to UNO Digital #13 (Hardware SPI clock)
// Connect MISO to UNO Digital #12 (Hardware SPI MISO)
// Connect MOSI to UNO Digital #11 (Hardware SPI MOSI)
//#define RA8875_INT 3
#define RA8875_CS 10
#define RA8875_RESET 9
Adafruit_RA8875 tft = Adafruit_RA8875(RA8875_CS, RA8875_RESET);
uint16_t tx, ty;
void setup()
{
Serial.begin(9600);
Serial.println("RA8875 start");
/* Initialise the display using 'RA8875_480x272' or 'RA8875_800x480' */
if (!tft.begin(RA8875_480x272)) {
Serial.println("RA8875 Not Found!");
while (1);
}
tft.displayOn(true);
tft.GPIOX(true); // Enable TFT - display enable tied to GPIOX
tft.PWM1config(true, RA8875_PWM_CLK_DIV1024); // PWM output for backlight
tft.PWM1out(255);
tft.fillScreen(RA8875_BLACK);
/* Switch to text mode */
tft.textMode();
....
i have always RA8875 not found ! in serial console.
May be my tft is not compatible with the module RA8875 from adafruit ?
i have searched on the code from file Adafruit_RA8875.cpp, the error is in line
Code:
uint8_t x = readReg(0);
Serial.print("x = 0x"); Serial.println(x,HEX);
if (x != 0x75) {
return false;
}
what is 0x75 code ?
i have tested too the library from sumotoy RA8875 Version:0.70b11p7, but when i compile, it say that teensy is not supported or my hardware is not supported yet
Any idea ?