|
我按照上面所说的做了,但是编译不通过,为什么呢?出现这个
Arduino:1.6.2 (Windows 7), 板:"Arduino Uno"
构建选项已变更,全部重新构建
sketch_jan31b.ino: In function 'void loop()':
sketch_jan31b.ino:24:14: error: no matching function for call to 'HardwareSerial::print()'
sketch_jan31b.ino:24:14: note: candidates are:
In file included from C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Stream.h:26:0,
from C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/HardwareSerial.h:29,
from C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Arduino.h:223,
from sketch_jan31b.ino:1:
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:58:12: note: size_t Print::print(const __FlashStringHelper*)
size_t print(const __FlashStringHelper *);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:58:12: note: candidate expects 1 argument, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:59:12: note: size_t Print::print(const String&)
size_t print(const String &);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:59:12: note: candidate expects 1 argument, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:60:12: note: size_t Print::print(const char*)
size_t print(const char[]);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:60:12: note: candidate expects 1 argument, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:61:12: note: size_t Print::print(char)
size_t print(char);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:61:12: note: candidate expects 1 argument, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:62:12: note: size_t Print::print(unsigned char, int)
size_t print(unsigned char, int = DEC);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:62:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:63:12: note: size_t Print::print(int, int)
size_t print(int, int = DEC);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:63:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:64:12: note: size_t Print::print(unsigned int, int)
size_t print(unsigned int, int = DEC);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:64:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:65:12: note: size_t Print::print(long int, int)
size_t print(long, int = DEC);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:65:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:66:12: note: size_t Print::print(long unsigned int, int)
size_t print(unsigned long, int = DEC);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:66:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:67:12: note: size_t Print::print(double, int)
size_t print(double, int = 2);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:67:12: note: candidate expects 2 arguments, 0 provided
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:68:12: note: size_t Print::print(const Printable&)
size_t print(const Printable&);
^
C:\Users\Administrator\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/Print.h:68:12: note: candidate expects 1 argument, 0 provided
编译有误。
报告将会包含更多的信息
"在编译时,输出详细信息"
在 文件>首选项 中启用
|
|