I recently picked up a Due and I'm finding that the OneWire library is giving me some compile errors.
Just trying to run the example "DS18x20_Temperature" in theOneWire\examples\DS18x20_Temperature folder give me a bunch of errors. Since this is a very commonly used library I was wondering, has anyone been able to get this working on their Arduino Due?
Here is the error that is coming up when compiling:
In file included from DS18x20_Temperature.pde:1:
C:\Users\KCORE\Documents\Arduino\libraries\OneWire/OneWire.h:77: error: #error "Please define I/O register types here"
C:\Users\KCORE\Documents\Arduino\libraries\OneWire/OneWire.h:84: error: 'IO_REG_TYPE' does not name a type
C:\Users\KCORE\Documents\Arduino\libraries\OneWire/OneWire.h:85: error: ISO C++ forbids declaration of 'IO_REG_TYPE' with no type
C:\Users\KCORE\Documents\Arduino\libraries\OneWire/OneWire.h:85: error: expected ';' before '*' token
The OneWire library I'm using is from this link:http://www.pjrc.com/teensy/td_libs_OneWire.html
Thanks for any replies or help you can provide.