Pages: [1]   Go Down
Author Topic: Problem with OneWire library  (Read 1123 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

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:
Code:
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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd very much like to get this working as well so I can talk to my 1-wire EEPROM.

I tried the Teensy library and mucked around with some changes, but didn't have much luck. I would think this library would be pretty important.

I tried the modifications to the code as posted here:
http://forum.pjrc.com/threads/252-OneWire-library-for-Teensy-3-(DS18B20)

But still ran into compiler errors after this as well, where: "digital_pin_to_info_PGM[(pin)] was not delared in this scope"

Is there something in the core that needs to be modified?

Logged

Pages: [1]   Go Up
Jump to: