2624| 8
|
[求助问答] 上传出错 |
已经试了好多办法了,一键安装串口驱动;更换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 编译失败 |
删掉电机部门的代码后,可以用这个pwm控制电机。你在uno上加的东西太多了,内存都不太够,编译出来有警告。 |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed