LilyGO / TTGO-TM-ESP32

86 stars 30 forks source link

Which ESP32' pin for TFT ? #6

Open TridentTD opened 5 years ago

TridentTD commented 5 years ago

I want to know the pins for TTGO-TM-ESP32's TFT .

PIN_MISO ??? // SPI MISO PIN_MOSI ??? // SPI MOSI PIN_CLK ??? // SPI CLOCK pin PIN_CS ??? // Display CS pin PIN_DC ??? // Display command/data pin PIN_RESET ??? // Reset Pin

Thank you.

bishibashiB commented 5 years ago

These did a job for me (->TFT control; not sound/SD) PIN_NUM_MISO 0 // SPI MISO PIN_NUM_MOSI 23 // SPI MOSI / SDA PIN_NUM_CLK 18 // SPI CLOCK pin PIN_NUM_CS 05 // Display CS pin PIN_NUM_DC 16 // Display command/data pin / RS PIN_NUM_TCS 0 // Touch screen CS pin PIN_NUM_RST 17 // GPIO used for RESET control PIN_NUM_BCKL 0 // GPIO used for backlight control

TridentTD commented 5 years ago

@Jekyll555 Thank you.

Can this board be controled the blacklight for turning on / turning off ?

bishibashiB commented 5 years ago

HI @TridentTD , As you might have found there is no PIN to control the backlight mentioned. Possibly there is a way to switch the backlight via writing/setting certain control registers... frankly I have no experience on which common drivers (ILI9341) support this (in which way)... The reason I put the pin about backlight in the example above: it's there as a default PIN definition in a few libs like ESP32_TFT_library.

TridentTD commented 5 years ago

@JekyII555 Thank you.

jwktje commented 3 years ago

Stumbling upon this years later. Did any of you find out if the backlight can be turned off?