Class: IoT::DHT11
- Inherits:
-
DHTxxSensor
- Object
- Receptor
- DigitalReceptor
- DigitalSensor
- TemperatureSensor
- HumitureSensor
- DHTxxSensor
- IoT::DHT11
- Defined in:
- lib/iot/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.
30 31 32 |
# File 'lib/iot/dht_sensor.rb', line 30 def initialize(pin) super(pin, 11) end |