fork from http://www.pjrc.com/teensy/td_libs_OneWire.html