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.75k stars 1.07k forks source link

ESP32_SDcard_jpeg_ILI9486_MAR3502(have no touch screen) 3.5"__ISSUES? #340

Closed amirjak closed 5 years ago

amirjak commented 5 years ago

01 TFT 3 5 ili9486_

i have this__tft 3.5 lcd ili9486_MAR3502(have no touch screen)___ . i want use sd card on tft 3.5 lcd ili9486____ and i use DOIT Esp32 DevKit v1? how i can use? I USE THIS PIN tft 3.5 lcd ili9486____ DOIT Esp32 DevKit v1
_TFT_CS___D33 _TFT_DC/RS____D15 _TFT_RST____D32 _TFT_WR____D4 _TFT_RD___D2 _TFT_D0____D12 TFT_D1____D13 _TFT_D2__D26 _TFT_D3___D25 _TFT_D4____D17TX2 _TFT_D5___D16_RX2 _TFT_D6___D27 _TFT_D7___D14


_TFT SD_SS __D5cs _TFT SD_DI __D23MOSI _TFT SD_DO__D19 MISO ____TFT SD_SCK___D18 ____CLK

NOT WORKING

but with sd card module connect to DOIT Esp32 DevKit v1 work correctly

Bodmer commented 5 years ago

How have you wired the ESP32 to the shield?

Do the TFT_eSPI library examples display correctly?

amirjak commented 5 years ago

hi thank for answering How have you wired the ESP32 to the shield? in file User_Setup.h

define ILI9486_DRIVER


must be comment // ###### EDIT THE PIN NUMBERS IN THE LINES FOLLOWING TO SUIT YOUR ESP8266 SETUP ######

// For NodeMCU - use pin numbers in the form PIN_Dx where Dx is the NodeMCU pin designation #define TFT_CS PIN_D8 // Chip select control pin D8 #define TFT_DC PIN_D3 // Data Command control pin #define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)


Replace this line:

define TFT_PARALLEL_8_BIT

With this one

define ESP32_PARALLEL

// The ESP32 and TFT the pins used for testing are:

define TFT_CS 33 // Chip select control pin (library pulls permanently low

define TFT_DC 15 // Data Command control pin - must use a pin in the range 0-31

define TFT_RST 32 // Reset pin, toggles on startup

define TFT_WR 4 // Write strobe control pin - must use a pin in the range 0-31

define TFT_RD 2 // Read strobe control pin

define TFT_D0 12 // Must use pins in the range 0-31 for the data bus

define TFT_D1 13 // so a single register write sets/clears all bits.

define TFT_D2 26 // Pins can be randomly assigned, this does not affect

define TFT_D3 25 // TFT screen update performance.

define TFT_D4 17

define TFT_D5 16

define TFT_D6 27

define TFT_D7 14

Do the TFT_eSPI library examples display correctly? YES SD card _SD_SS __D5cs __SD_DI _D23MOSI __SD_DOD19 _MISO ____SD_SCK___D18 ____CLK

Bodmer commented 5 years ago

If you only connect power (+5V and 0V) and SPI lines to the TFT shield SD card pins does the SD Card interface work?

pipi61 commented 5 years ago

Hi! This sdcard module contain power regulator, and level converter. Try another simple sdcard module without regulator and without converter

amirjak commented 5 years ago

If you only connect power (+5V and 0V) and SPI lines to the TFT shield SD card pins does the SD Card interface work?

NOT WORKING do you think SD Card interface broken?

what is ___j1_j2_j3_j4 on tft ?

Bodmer commented 5 years ago

It looks like a hardware fault or an incompatibilty for some reason.

J1-4 are simply reference names for the header strips so youcan identify their position and reference the schematic.

I will close as the problem you have does not appear tobe due to the library.

amirjak commented 5 years ago

Thanks😁