Submitted by alastair on Sun, 27/04/2014 - 4:24pm
I've just ported Paul Stoffregen's Arduino OneWire library to Flame, and added support for the ubiquitous Dallas Semiconductors DS18B20 1-Wire tempertature sensors.
A new TemperatureListener interface has been added, as these sensors can take a long time to get a reading (750ms at 12 bit resolution). If you don't want to use the listener interface, you can ask the device instance what it's latest reading was.