Closed duchengyao closed 1 year ago
选中对应驱动文件https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setup_Select.h#L78-L78
感谢回复,我使用 platformio ,在 .pio/libdeps/t-camera-plus/TFT-eSPI/User_Setup_Select.h
里面取消注释了 #include <User_Setups/Setup44_TTGO_CameraPlus.h>
,我是 2.4.79 所以是第81行
屏幕有显示了,但是显示有错误,我拍了视频,如下:
另外,在编译的时候会报几个 redefined 的 warnning ,请问我需要进行哪些修改
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:81,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h:11: warning: "TFT_CS" redefined
#define TFT_CS 12
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:30,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup.h:169: note: this is the location of the previous definition
#define TFT_CS PIN_D8 // Chip select control pin D8
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:81,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h:12: warning: "TFT_DC" redefined
#define TFT_DC 15
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:30,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup.h:170: note: this is the location of the previous definition
#define TFT_DC PIN_D3 // Data Command control pin
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:81,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h:13: warning: "TFT_RST" redefined
#define TFT_RST -1
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:30,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup.h:171: note: this is the location of the previous definition
#define TFT_RST PIN_D4 // Reset pin (could connect to NodeMCU RST, see next line)
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:81,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h:31: warning: "SPI_FREQUENCY" redefined
#define SPI_FREQUENCY 40000000 // Maximum to use SPIFFS
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:30,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup.h:343: note: this is the location of the previous definition
#define SPI_FREQUENCY 27000000
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:189,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/TFT_Drivers/ILI9341_Defines.h:6: warning: "TFT_HEIGHT" redefined
#define TFT_HEIGHT 320
In file included from .pio/libdeps/t-camera-plus/TFT_eSPI/User_Setup_Select.h:81,
from .pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:68,
from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/User_Setups/Setup44_TTGO_CameraPlus.h:6: note: this is the location of the previous definition
#define TFT_HEIGHT 240
In file included from C:/Users/hbyls/Documents/Arduino/LilyGo-Camera-Series/examples/sketch/sketch.ino:82:
.pio/libdeps/t-camera-plus/TFT_eSPI/TFT_eSPI.h:909:8: warning: #warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available! [-Wcpp]
#warning >>>>------>> TOUCH_CS pin not defined, TFT_eSPI touch functions will not be available!
^~~~~~~
请问是否有可以同时开启 rtsp stream(或者sd卡存储视频) 和 tft 显示 的样例
比如 SPI_FREQUENCY 到底应该是 40000000 还是 27000000
我注释了27行和取消注释SPI.begin(TFT_SCLK_PIN, TFT_MISO_PIN, TFT_MOSI_PIN);
以后,正常运行了。万分感谢。
请问我为什么要取消注释SPI.begin(TFT_SCLK_PIN, TFT_MISO_PIN, TFT_MOSI_PIN);
? 按注释写的,应该TFT已经初始化过了吧
共用总线,tft已经初始化了。但是重复初始化也不应该影响
我的意思是,应该不用取消注释那一行,也可以正常运行,因为tft已经初始化了。 但是不取消注释,确实sd卡访问不了,很奇怪。
我的问题都解决了,已经可以正常运行了,十分感谢!
I use
example/sketch
, no screen output.其它功能正常,只是屏幕有背光无内容,黑屏。
TFT_eSPI @ 2.4.
78
is not available, so I useTFT_eSPI @ 2.4.
79
in the platformio.ini below.platformio.ini
console output: