MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / setType

Method setType

libraries/DHTNEW/dhtnew.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75void DHTNEW::setType(uint8_t type)
76{
77 if ((type == 0) || (type == 11))
78 {
79 _type = type;
80 _wakeupDelay = DHTLIB_DHT11_WAKEUP;
81 }
82 if ((type == 22) || (type == 23))
83 {
84 _type = type;
85 _wakeupDelay = DHTLIB_DHT_WAKEUP;
86 }
87 // experimental 0.4.14
88 if (type == 70)
89 {
90 _type = type;
91 _wakeupDelay = DHTLIB_SI7021_WAKEUP;
92 }
93}
94
95
96// return values:

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36