Hi all,
I'm trying my first ST7789 based LCD (320x240) with a Teensy 4.0 and I'm having a bit of trouble getting it to work. This is a generic LCD, nothing fancy. So far I've been unable to get anything to appear on the display, and mostly I'm wondering if I've chosen the correct pins on the Teensy.
Here's the start of my code:
I don't have a proper scope here but I believe I have verified that there is activity on the lines. Anything glaring that I've just managed to completely mess up?
Thank you!
I'm trying my first ST7789 based LCD (320x240) with a Teensy 4.0 and I'm having a bit of trouble getting it to work. This is a generic LCD, nothing fancy. So far I've been unable to get anything to appear on the display, and mostly I'm wondering if I've chosen the correct pins on the Teensy.
Here's the start of my code:
Code:
#include <Adafruit_GFX.h> // Core graphics library
#include <ST7789_t3.h> // Hardware-specific library
#include <ST7735_t3.h> // Hardware-specific library
#include <SPI.h>
// T4.0
#define TFT_SCLK 13
#define TFT_DATA 11
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 0
ST7789_t3 tft = ST7789_t3(TFT_CS, TFT_DC, TFT_DATA, TFT_SCLK, TFT_RST);
void setup() {
tft.init(240, 320);
tft.setCursor (0, 0);
tft.print("Hello World!");
Serial.println("Hello World!");
while(1);
}
void loop() {
}
I don't have a proper scope here but I believe I have verified that there is activity on the lines. Anything glaring that I've just managed to completely mess up?
Thank you!