RTD class of PicoRuby
Type aliases
rtd_unit_t
:celsius | :fahrenheit | :kelvin
Singleton methods
new
RTD.new(
driver: (:ADC | MCP3424 | MCP3208),
current_gpio: GPIO,
r_ref: (Float | Integer),
?channels: Hash[Symbol, (Integer | ADC)]
) -> instance
Instance methods
read
instance.read(?unit: rtd_unit_t) -> Float
temperature_in_celsius
instance.temperature_in_celsius(Float) -> Float
Attr accessors
sample_count (accessor)
instance.sample_count -> Integer