I have been able to (poorly) port the one wire library from here and I’ve successfully got it to compile in the spark cloud. I’ve been able to get the spark core to read the serial number and get the temperature from a DS18B20.
Here is the example code for that.
to get the library running on the spark core all I had to do is create functions that correspond to the DIRECT_WRITE and DIRECT_MODE #defines and then replace all uses of those defines with the functions I created.
but I’m not a programmer so although it works i have no idea if there is any unintended consequences of what I’ve done so use at your own risk. I copied the code from the digitalWrite and pinMode functions but without the safety checks to increase the speed.
hopefully someone with a little more experienced can properly port it and make it available as a #include in the spark cloud but for now this might be helpful to get a OneWire device working if you need to.