ESP32-MiniWebRadio icon indicating copy to clipboard operation
ESP32-MiniWebRadio copied to clipboard

AI Thinker ES8388 Audiokit with TFT

Open gerthalberg opened this issue 3 years ago • 2 comments

I've managed to get the radio and the display to work with the following settings (ILI9488) Also, the TFT frequency has to be set to 27000000 otherwise the display blanks after a few seconds. The board switches has to be set to: OFF OFF ON ON OFF

#ifdef CONFIG_IDF_TARGET_ESP32 // Digital I/O used #define TFT_CS 22 #define TFT_DC 21 #define TFT_BL -1 // at -1 the brightness menu is not displayed #define TP_IRQ 3
#define TP_CS 5 #define SD_MMC_D0 2 // cannot be changed #define SD_MMC_CLK 14 // cannot be changed #define SD_MMC_CMD 15 // cannot be changed #define IR_PIN 35 #define TFT_MOSI 13 // TFT and TP (VSPI) #define TFT_MISO 19 // TFT and TP (VSPI) #define TFT_SCK 12 // TFT and TP (VSPI) #if DECODER == 0 #define VS1053_CS 33 #define VS1053_DCS 4 #define VS1053_DREQ 36 #define VS1053_MOSI 13 // VS1053 (HSPI) #define VS1053_MISO 34 // VS1053 (HSPI) #define VS1053_SCK 12 // VS1053 (HSPI) (sometimes we need a 1k resistor against ground) #else #define I2S_DOUT 26 #define I2S_DIN -1 // pin not used #define I2S_BCLK 5 #define I2S_LRC 25 #define I2S_MCLK 0 // mostly not used #endif #define I2C_DATA 18 // some DACs are controlled via I2C #define I2C_CLK 23 #define SD_DETECT -1 // some pins on special boards: Lyra, Olimex, A1S ... #define HP_DETECT -1 #define AMP_ENABLED -1 #endif

Unfortunately it seems, that my use of GPIO03 (RDX0) for the TP_IRQ does not work - at least, the display does not react to touch (could it be a calibration issue?). I'm wondering if it could be possible to attach a wire to GPIO36.

gerthalberg avatar Jul 03 '22 10:07 gerthalberg

Sure it's possible. An "input only pin" can be selected for TP_IRQ. With a touch event, IRQ is set, then the coordinates are queried via SPI. I assume you have the same ILI9488 display as me. Then TFT-MISO must remain unconnected. TFT-MISO is also not required. It's a bug in the display itself.

schreibfaul1 avatar Jul 03 '22 13:07 schreibfaul1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 07:09 stale[bot]