| 236 | */ |
| 237 | |
| 238 | int 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 | } |
no test coverage detected