Main index | Section 4 | Options |
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
gpioths_load="YES"
DHT11 | DHT12 |
DHT21 | DHT22 |
AM3201 | AM3202 |
The supported devices are all similar to each other, varying primarily in accuracy and resolution. The devices require a single wire for data communications, using a custom protocol which is not compatible with Maxim's 1-wire(tm). The AM320x devices also support connection to an i2c bus, but this driver supports only the single-wire connection option.
dev.gpioths.<unit>.temp | |
The current temperature in integer deciKelvins. Note that sysctl(8) will convert those units to display in decimal degrees Celsius. | |
dev.gpioths.<unit>.hum | |
The current relative humidity, as an integer percentage. | |
dev.gpioths.<unit>.fails | |
The number of failed attempts to communicate with the sensor since the last good access. Cleared whenever a set of measurements is successfully retrieved. | |
The following properties are required in the gpioths device subnode:
compatible | |
Must be "dht11". | |
gpios | |
A reference to the gpio device and pin for data communications. | |
/dts-v1/; /plugin/; #include <dt-bindings/gpio/gpio.h>/ { compatible = "wand,imx6q-wandboard"; };
&{/} { dht0 { compatible = "dht11"; gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>; }; };
hint.gpioths.<unit>.at | |
The gpiobus(4) instance the gpioths instance is attached to. | |
hint.gpioths.pins | |
A bitmask with a single bit set to indicate which gpio pin on the gpiobus(4) to use for data communications. | |
GPIOTHS (4) | December 8, 2019 |
Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Unix is a junk OS designed by a committee of PhDs. | ” |
— Dave Cutler |