Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照教程移植,但是导入库失败 #36

Open
15192397971 opened this issue Jan 18, 2023 · 4 comments
Open

按照教程移植,但是导入库失败 #36

15192397971 opened this issue Jan 18, 2023 · 4 comments

Comments

@15192397971
Copy link

教程如下
https://blog.csdn.net/m0_50926303/article/details/120585496
下方为错误信息
Build started: Project: proj
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Project'
compiling SPFD5408_Adafruit_GFX.cpp...
..\Libraries\SPFD5408-master\SPFD5408_Adafruit_GFX.cpp(37): error: #5: cannot open source input file "SPFD5408_Adafruit_GFX.h": No such file or directory
#include <SPFD5408_Adafruit_GFX.h>
..\Libraries\SPFD5408-master\SPFD5408_Adafruit_GFX.cpp: 0 warnings, 1 error
compiling SPFD5408_TouchScreen.cpp...
..\Libraries\SPFD5408-master\SPFD5408_TouchScreen.cpp(6): error: #5: cannot open source input file "pins_arduino.h": No such file or directory
#include "pins_arduino.h"
..\Libraries\SPFD5408-master\SPFD5408_TouchScreen.cpp: 0 warnings, 1 error
compiling SPFD5408_Adafruit_TFTLCD.cpp...
..\Libraries\SPFD5408-master\SPFD5408_Adafruit_TFTLCD.h(18): error: #5: cannot open source input file "SPFD5408_Adafruit_GFX.h": No such file or directory
#include <SPFD5408_Adafruit_GFX.h>
..\Libraries\SPFD5408-master\SPFD5408_Adafruit_TFTLCD.cpp: 0 warnings, 1 error
".\Objects\proj.axf" - 3 Error(s), 0 Warning(s).
Target not created.

@FASTSHIFT
Copy link
Owner

硬件是什么平台?
是基于这个库吗:https://github.com/JoaoLopesF/SPFD5408

@15192397971
Copy link
Author

15192397971 commented Jan 18, 2023 via email

@FASTSHIFT
Copy link
Owner

原始库和底层寄存器耦合太紧密,不方便移植。
我另外找了一个版本重新移植:https://github.com/nopnop2002/STM32_TFT_8bit 请参考这个链接的说明进行连线。
由于没有硬件无法进行测试,所以不保证可以正常工作。
Keil工程:SPFD5408_F103.zip

@15192397971
Copy link
Author

15192397971 commented Jan 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants