Class: DHT11
- Inherits:
- DHTxxSensor show all
- Defined in:
- lib/dht_sensor.rb
Overview
DHT11 - junior model, lower presicion
Instance Method Summary collapse
-
#initialize(pin) ⇒ DHT11
constructor
A new instance of DHT11.
Methods inherited from DHTxxSensor
Methods inherited from HumitureSensor
Methods inherited from TemperatureSensor
#celsius, #fahrenheit, #kelvin, #read_data, #reaumur, #temperature, #to_s
Methods inherited from DigitalReceptor
Methods inherited from Receptor
Constructor Details
#initialize(pin) ⇒ DHT11
Returns a new instance of DHT11.
26 27 28 |
# File 'lib/dht_sensor.rb', line 26 def initialize(pin) super(pin, 11) end |