I thought I might take another crack at this. Before I started again with the Teensy 4.1, I wired the display ( the same ER-TFTM040-1 as the OP )
up to an RP2350, using the Arduino GFX library, also using 16bit parallel interface, the display works. So I know the display is set up correctly, and it functions. Then I desoldered the RP2350 board, and started moving the wires over 1 at a time to the T4.1, following the pin callouts in the flexIO.h file. I cannot get it to work, just a white screen, and it doesnt appear to be reading any data from the LCD ( when using the libraries included demo sketch ) . Here is a slimmed down test sketch I treid, it also just results in a white screen.
#include <Teensy_Parallel_GFX.h>
#include "NT35510_t4x_p.h"
#define TFT_DC 28
#define TFT_CS 29
#define TFT_RST 30
#define DISPLAY_TYPE NT35510
#define DISPLAY_SPEED_MHZ 30
#define DISPLAY_ROTATION 1
//NT35510_t4x_p lcd = NT35510_t4x_p(TFT_DC, TFT_CS, TFT_RST, 36, 37, 19, 18, 14, 15, 40, 41, 17, 16, 22, 23, 20, 21, 38, 39, 26, 27 ); //(dc, cs, rs
NT35510_t4x_p lcd = NT35510_t4x_p(TFT_DC, TFT_CS, TFT_RST ); //(dc, cs, rs
void setup() {
pinMode(30, OUTPUT); // reset
digitalWrite(33, LOW);
delay(100);
digitalWrite(33, HIGH);
Serial.begin(115200);
while (!Serial && millis() < 5000) {}
Serial.println("BOOT");
// Hard reset
digitalWrite(30, HIGH);
delay(20);
digitalWrite(30, LOW);
delay(20);
digitalWrite(30, HIGH);
delay(150);
lcd.setFlexIOPins( // ive tried commenting this out entirely.. still doesnt work
36, 37,
19, 18, 14, 15, 40, 41, 17, 16,
22, 23, 20, 21, 38, 39, 26, 27
);
Serial.println("before begin");
lcd.begin(NT35510, 20);
Serial.println("after begin");
lcd.setBitDepth(16);
Serial.println("fill red");
lcd.fillScreen(NT35510_RED);
delay(1000);
Serial.println("fill green");
lcd.fillScreen(NT35510_GREEN);
delay(1000);
Serial.println("fill blue");
lcd.fillScreen(NT35510_BLUE);
delay(1000);
Serial.println("done");
}
void loop() {
}
Any help would be awesome, thanks