class OneWire::Thermometer

Constants

PREFIX

Attributes

last_value[R]

Public Instance Methods

value() click to toggle source
# File lib/one_wire/thermometer.rb, line 8
def value
  @last_value = @value
  @value = w1_slave[/t=(\d*)/, 1].to_f / 1000
end