| 2462 | */ |
| 2463 | |
| 2464 | int analogRead (int pin) |
| 2465 | { |
| 2466 | struct wiringPiNodeStruct *node = wiringPiNodes ; |
| 2467 | |
| 2468 | if ((node = wiringPiFindNode (pin)) == NULL) |
| 2469 | return 0 ; |
| 2470 | else |
| 2471 | return node->analogRead (node, pin) ; |
| 2472 | } |
| 2473 | |
| 2474 | |
| 2475 | /* |
no test coverage detected