Class: IoT::DHT22
- Inherits:
-
DHTxxSensor
- Object
- Receptor
- DigitalReceptor
- DigitalSensor
- TemperatureSensor
- HumitureSensor
- DHTxxSensor
- IoT::DHT22
- Defined in:
- lib/iot/dht_sensor.rb
Overview
DHT22 - senior model, higher presicion
Instance Method Summary collapse
-
#initialize(pin) ⇒ DHT22
constructor
A new instance of DHT22.
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) ⇒ DHT22
Returns a new instance of DHT22.
37 38 39 |
# File 'lib/iot/dht_sensor.rb', line 37 def initialize(pin) super(pin, 22) end |