Help with Waveshare RP2040-LCD-1.28 w/GC9A01A driver #2025
RickJHarris
started this conversation in
Raspberry Pi Pico
Replies: 2 comments
-
I contacted Waveshare and their tech support provided me with a working User_Setup.h . I was missing the line #define TFT_BACKLIGHT_ON HIGH The RP2040-LCD-1.28 is a hell of a deal. Only a couple dollars more than a standalone 1.28 round LCD, and it includes an integrated Pi Pico. Working User_Setup.h attached. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For the Waveshare RP2040-Touch-LCD-1.28 the setup is slightly different.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to get TFT_eSPI working on this Waveshare Pico/1.28" with a GC9A01A driver combo - https://www.waveshare.com/wiki/RP2040-LCD-1.28 , but get only a blank screen, and have run out of ideas. It works with Adafruit GFX, so I know my pin assignments are correct.
Here's my User_Setup.h
#define RPI_DISPLAY_TYPE // 20MHz maximum SPI
#define GC9A01_DRIVER
#define TFT_WIDTH 240 // ST7789 240 x 240 and 240 x 320
#define TFT_HEIGHT 240 // ST7789 240 x 240
#define TFT_MISO -1
#define TFT_MOSI 11 // In some display driver board, it might be written as "SDA" and so on.
#define TFT_SCLK 10
#define TFT_CS 9 //22 // Chip select control pin
#define TFT_DC 8 //5 // Data Command control pin
#define TFT_RST 12 // Reset pin (could connect to Arduino RESET pin)
#define TFT_BL 25 // LED back-light
#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 SMOOTH_FONT
#define TFT_SPI_PORT 1 // Set to 0 if SPI0 pins are used, or 1 if spi1 pins used
#define SPI_FREQUENCY 20000000
Here's my Read_User_Setup output (Including SPI Port#)
[code]
TFT_eSPI ver = 2.4.72
Processor = RP2040
Transactions = Yes
Interface = SPI
SPI Port = SPI1
Display driver = 9A01
Display width = 240
Display height = 240
MOSI = GPIO 11
SCK = GPIO 10
TFT_CS = GPIO 9
TFT_DC = GPIO 8
TFT_RST = GPIO 12
TFT_BL = GPIO 25
Font GLCD loaded
Font 2 loaded
Font 4 loaded
Font 6 loaded
Smooth font enabled
Display SPI frequency = 20.00
[/code]
And the Arduino IDE verbose output when compiling Color_Test is in the attached file.
verbose_ide.txt
Any help would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions