Description Usage Arguments Value Examples
View source: R/get_dht11_sensor.R
Returns a DHT11 sensor instance ready to be read.
1 | get_dht11_sensor(pin)
|
pin |
An integer of length one with the GPIO pin that the sensor is connected to. |
A DHT11 S4 object, this object will be set to work with the selected sensor.
1 2 3 4 5 6 7 | ## Not run:
# Get a DHT11 instance connected at GPIO 14.
dht11_14 <- get_dht11_sensor(14)
# Get a DHT11 instance connected at GPIO 18.
dht11_18 <- get_dht11_sensor(18)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.