I wasn't aware that OneWire was on GitHub. My mistake.
I think the change is self explanatory. e.g. The use of API calls instead of direct hardware access.
The only minor hack is that bitmask is used to store the pin number, as this was the most appropriate macro / variable without changing the C code as well.
BaseReg is not use, and reg type has been defined as unsigned int which should compile on most platforms.
warning message has been added
I have test compiled for Uno and Due on 1.6.0 and also for non standard hardware, without any errors.
Paul,
Sorry to initially send you a personal email.
I wasn't aware that OneWire was on GitHub. My mistake.
I think the change is self explanatory. e.g. The use of API calls instead of direct hardware access.
The only minor hack is that bitmask is used to store the pin number, as this was the most appropriate macro / variable without changing the C code as well.
BaseReg is not use, and reg type has been defined as unsigned int which should compile on most platforms.
warning message has been added
I have test compiled for Uno and Due on 1.6.0 and also for non standard hardware, without any errors.
Thanks
Roger Clark