Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.83k stars 1.1k forks source link

Pico-Eval-Board ILI9488 #3275

Open hiddenvs opened 7 months ago

hiddenvs commented 7 months ago

I have this development board: https://www.waveshare.com/wiki/Pico-Eval-Board#Open_Source_Demo which is very basic kit with Raspberry Pi Pico. It contains TFT display controlled by ILI9488. I am not sure which user configuration is the correct one. I tried more from user setups like 20/21/60/61, but nothing worked. I modified the correct pins according to DC(8),CS(9),CLK(10),MOSI(11),RST(15) but nothing worked. I modified also constant for bus speed and constant SPI_READ_SPEED to the values I found on internet in articles around ILI9488 (27MHz and 10MHz).

My very basic test code is like:

#include <Arduino.h>
#include <SPI.h>
#include <TFT_eSPI.h> // Hardware-specific library

#define BLACK         0x0000
#define WHITE         0xFFFF
#define LED           25
#define LED_DELAY     100
#define TFT_SPI_PORT  1
#define TDELAY        500
#define dw            digitalWrite

TFT_eSPI tft = TFT_eSPI();       // Invoke custom library

void setup() 
{
  pinMode(LED, OUTPUT);
  Serial.begin(115200);
  //
  tft.init();
  tft.fillScreen(0xF81F);
}

void loop() 
{
  dw(LED, HIGH);
  delay(LED_DELAY);
  dw(LED, LOW);
  delay(LED_DELAY);
}

It "stops" by tft.init(). All before that line will run, but after lines are not reached anymore. If I remove it, it will run smoothly. I don't know what am I doing wrong and will appreciate any advice. Pins are configured corresponding to documentation provide on web page from WaveShare, I read through couple of Github repos docu, Arduino's sketches but didn't find any clues to make it run.

hiddenvs commented 7 months ago

Examples from vendor are working, so display nor the kit are functional without issues.