上传出错
已经试了好多办法了,一键安装串口驱动;更换usb线,检查逻辑等。而且跟他差不多的一个代码就可以上传,用的是aduno,很急,求解谢谢以下是小黑框:
D:\网课\编程\Mind+\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10804 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\cores\arduino -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\variants\eightanaloginputs -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\cores\arduino -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\variants\standard -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_Servo -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_HuskyLens -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\libraries\Wire -I D:\网课\编程\Mind+\Arduino\hardware\arduino\avr\libraries\SoftwareSerial -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_SSD1306 -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_ASCIIfont -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_CHfont -I D:\网课\编程\Mind+\Arduino\libraries\DFRobot_SpeechSynthesis_M -I C:\Users\19105\AppData\Local\DFScratch\extensions\nick-l298n-thirdex\arduinoC\libraries\L298N C:\Users\19105\AppData\Local\DFScratch\cache\dfrobot.ino.cpp -o C:\Users\19105\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o
C:\Users\19105\AppData\Local\DFScratch\cache\dfrobot.ino.cpp:27:44: error: no matching function for call to 'L298N::L298N(int, int, int, int, int, int)'
L298N tb1(3,2,8,5,6,7);
^
In file included from C:\Users\19105\AppData\Local\DFScratch\cache\dfrobot.ino.cpp:7:0:
C:\Users\19105\AppData\Local\DFScratch\extensions\nick-l298n-thirdex\arduinoC\libraries\L298N/L298N.h:22:3: note: candidate: L298N::L298N(int, int, int, int)
L298N(int pwm1,int dir1,int pwm2,int dir2 );
^
C:\Users\19105\AppData\Local\DFScratch\extensions\nick-l298n-thirdex\arduinoC\libraries\L298N/L298N.h:22:3: note: candidate expects 4 arguments, 6 provided
C:\Users\19105\AppData\Local\DFScratch\extensions\nick-l298n-thirdex\arduinoC\libraries\L298N/L298N.h:17:7: note: candidate: constexpr L298N::L298N(const L298N&)
class L298N
^
C:\Users\19105\AppData\Local\DFScratch\extensions\nick-l298n-thirdex\arduinoC\libraries\L298N/L298N.h:17:7: note: candidate expects 1 argument, 6 provided
编译失败
把项目发上来,我帮你改下 呢有错{:5_116:} 感谢大佬,这是文件 DFSyBM3-i4u 发表于 2023-3-28 11:59
把项目发上来,我帮你改下
现在发现好像是语音合成跟图像识别有冲突,想请问一下怎么解决,十分感谢,文件已经发在评论区了 把这个用户库去掉,程序就可以编译成功了 删掉电机部门的代码后,可以用这个pwm控制电机。你在uno上加的东西太多了,内存都不太够,编译出来有警告。 二哈识图使用前需要初始化模块,设置模式,请参考这个: 十分感谢{:5_138:}
页:
[1]