| 87 | */ |
| 88 | |
| 89 | static int myDigitalRead (struct wiringPiNodeStruct *node, int pin) |
| 90 | { |
| 91 | int mask, value ; |
| 92 | |
| 93 | mask = 1 << ((pin - node->pinBase) & 7) ; |
| 94 | value = wiringPiI2CRead (node->fd) ; |
| 95 | |
| 96 | if ((value & mask) == 0) |
| 97 | return LOW ; |
| 98 | else |
| 99 | return HIGH ; |
| 100 | } |
| 101 | |
| 102 | |
| 103 | /* |
nothing calls this directly
no test coverage detected