idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
idfxx::dht::sensor::config Struct Reference

Configuration for a DHT sensor. More...

Public Attributes

idfxx::gpio pin = gpio::nc()
 Data line GPIO (required).
 
enum model model = model::dht22
 Sensor model on the line.
 
bool internal_pullup = true
 Enable the internal pull-up on the data line.
 

Detailed Description

Configuration for a DHT sensor.

Definition at line 80 of file dht.hpp.

Member Data Documentation

◆ internal_pullup

bool idfxx::dht::sensor::config::internal_pullup = true

Enable the internal pull-up on the data line.

The bus idles high; disable only if the board has an external pull-up resistor.

Definition at line 85 of file dht.hpp.

◆ model

enum model idfxx::dht::sensor::config::model = model::dht22

Sensor model on the line.

Definition at line 82 of file dht.hpp.

◆ pin

idfxx::gpio idfxx::dht::sensor::config::pin = gpio::nc()

Data line GPIO (required).

Definition at line 81 of file dht.hpp.


The documentation for this struct was generated from the following file: