Chatter screen pins for TFT_eSPI library

I cannot seem to find any information on the pins for the Chatter (specifically 2.0) screen, or even what the screen driver is.

1 Like

If it makes it easier, a different library could be used instead of TFT_eSPI.

1 Like

Hi @SmartDude,

you can find the schematics with all the information attached.

Also, the libraries for Chatter 2.0 can be found here:

Best,
Monika

I looked for the same thing and took me a while to find, but I think I have a spoiler to provide, this is from the Arduino board definitions for the chatter.

chatter:
chatter.build.defines= -DLOVYAN_PANEL=Panel_ST7735S -DLOVYAN_FREQ=27000000 -DLOVYAN_WIDTH=128 -DLOVYAN_HEIGHT=160 -DLOVYAN_MISO=-1 -DLOVYAN_MOSI=26 -DLOVYAN_SCK=27 -DLOVYAN_CS=-1 -DLOVYAN_DC=33 -DLOVYAN_RST=15

I’m taking this to mean it’s ST7735S with 160x128 resolution (128x160 rotated)

chatter2:
chatter2.build.defines=DLOVYAN_PANEL=Panel_ST7735S -DLOVYAN_FREQ=27000000 -DLOVYAN_WIDTH=128 -DLOVYAN_HEIGHT=160 -DLOVYAN_MISO=-1 -DLOVYAN_MOSI=26 -DLOVYAN_SCK=27 -DLOVYAN_CS=-1 -DLOVYAN_DC=33 -DLOVYAN_RST=15

apparently no difference

I got Chatter working with TFT_eSPI today, here was the working tft_setup.h

#define ST7735_DRIVER

#define TFT_WIDTH  128
#define TFT_HEIGHT 160

#define TFT_MISO -1
#define TFT_MOSI 26
#define TFT_SCLK 27
#define TFT_CS    23  // Chip select control pin
#define TFT_DC    33  // Data Command control pin
#define TFT_RST   -1  // Reset pin (could connect to RST pin)

#define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
#define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
#define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
//#define LOAD_FONT8N // Font 8. Alternative to Font 8 above, slightly narrower, so 3 digits fit a 160 pixel TFT
#define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts

#define SMOOTH_FONT


#define SPI_FREQUENCY  27000000

I have Chatter not Chatter2, but I think they’re the same.
When I ran this as a test, the screen rotation was 90° to the right, so tft.setRotation(3) was necessary to get the text upright.

Also I believe the backlight is on pin 32 and it’s active LOW, so in your setup:

  pinMode(32, OUTPUT); // BACKLIGHT
  digitalWrite(32, LOW);