MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / rht03Setup

Function rht03Setup

wiringPi/rht03.c:238–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 */
237
238int rht03Setup (const int pinBase, const int piPin)
239{
240 struct wiringPiNodeStruct *node ;
241
242 if ((piPin & PI_GPIO_MASK) != 0) // Must be an on-board pin
243 return false ;
244
245// 2 pins - temperature and humidity
246
247 node = wiringPiNewNode (pinBase, 2) ;
248
249 node->fd = piPin ;
250 node->analogRead = myAnalogRead ;
251
252 return true ;
253}

Callers 1

doExtensionRht03Function · 0.85

Calls 1

wiringPiNewNodeFunction · 0.85

Tested by

no test coverage detected