|
|
如題:
官方示例也跑不通
下面是TFTESPI配置
#define SPI_FREQUENCY 27000000
// #define SPI_FREQUENCY 40000000
// #define SPI_FREQUENCY 55000000 // STM32 SPI1 only (SPI2 maximum is 27MHz)
// #define SPI_FREQUENCY 80000000
#define TFT_MISO -1
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS 15 // Chip select control pin
#define TFT_DC 18 // Data Command control pin
#define ST7789_DRIVER
#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is co
// Optional reduced SPI frequency for reading TFT
#define SPI_READ_FREQUENCY 20000000
// The XPT2046 requires a lower SPI clock rate of 2.5MHz so we define that here:
#define SPI_TOUCH_FREQUENCY 2500000
// The ESP32 has 2 free SPI ports i.e. VSPI and HSPI, the VSPI is the default.
// If the VSPI port is in use and pins are not accessible (e.g. TTGO T-Beam)
// then uncomment the following line:
#define USE_HSPI_PORT
官方示例 github/Bodmer/TJpg_Decoder 注釋掉DMA宏后正常 但是開啟后只顯示開頭的16*16部分
下圖是通過TJpgDec解碼后的回調(diào) 經(jīng)過串口打印 x y 確實(shí)是以16像素為基準(zhǔn)變化的
幫忙瞅瞅
|
|