I appreciate that this is because I’m using a device that I imagine isn’t that popular compared to other Arduino’s, but I’ve been attempting to compile my script on a RFduino that reads from a OneWire temperature sensor. My code compiles fine on my Uno but fails on my RFduino, and it fails when calling the header file:
.../OneWire/OneWire.h:108: error: #error "Please define I/O register types here" .../OneWire/OneWire.h:115: error: 'IO_REG_TYPE' does not name a type .../OneWire/OneWire.h:116: error: ISO C++ forbids declaration of 'IO_REG_TYPE' with no type .../OneWire/OneWire.h:116: error: expected ';' before '*' token
Note: I’m running version 2.2 of the OneWire library.
When researching into this I’ve found that other users have experienced this when trying with a device that is not supported by the library, however I found a post by someone claiming they have got this to work: http://forum.rfduino.com/index.php?topic=103.msg261#msg261. This forum has is now annoyingly closed for some reason, so I’m looking for advice here. Does it look possible without re-writing or modifying libraries?