I have a simple program to test out these libraries after upgrading to version 1. The program is linked below as are the libraries. They are for [SHT21][1] humidity sensors.
I get the following errors when I try to compile the program and libraries.
> In file included from sketch_mar26a.cpp:1: /Applications/Arduino
> v1.0.app/Contents/Resources/Java/libraries/Ports/Ports.h:239: error:
> conflicting return type specified for 'virtual void
> UartPlug::write(byte)' /Applications/Arduino
> v1.0.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48:
> error: overriding 'virtual size_t Print::write(uint8_t)'
- [http://pastebin.com/Tv8bZfky][1] All the libraries and program
**Offending section from `ports.h`**
public:
UartPlug (PortI2C& port, byte addr)
: dev (port, addr), in (0), out (0) {}
void begin(long);
byte available();
int read();
void flush();
virtual void write(byte);
Offending line from print.h
virtual size_t write(uint8_t) = 0;
[1]: http://pastebin.com/Tv8bZfky
Perhaps you could narrow things down to the particular offending sections and post those here? Having us go to an external side to look through all your code is perhaps not the most productive approach. Even though the error most likely directly points out what the problem is.
以上就是Libraries in Arduino IDE 1.0的详细内容,更多请关注web前端其它相关文章!