| 56 | */ |
| 57 | |
| 58 | static int myAnalogRead (struct wiringPiNodeStruct *node, int pin) |
| 59 | { |
| 60 | int x ; |
| 61 | |
| 62 | wiringPiI2CWrite (node->fd, 0x40 | ((pin - node->pinBase) & 3)) ; |
| 63 | |
| 64 | x = wiringPiI2CRead (node->fd) ; // Throw away the first read |
| 65 | x = wiringPiI2CRead (node->fd) ; |
| 66 | |
| 67 | return x ; |
| 68 | } |
| 69 | |
| 70 | |
| 71 | /* |
nothing calls this directly
no test coverage detected