| 65 | */ |
| 66 | |
| 67 | static void myDigitalWrite (struct wiringPiNodeStruct *node, int pin, int value) |
| 68 | { |
| 69 | int bit, old ; |
| 70 | |
| 71 | bit = 1 << ((pin - node->pinBase) & 7) ; |
| 72 | |
| 73 | old = node->data2 ; |
| 74 | if (value == LOW) |
| 75 | old &= (~bit) ; |
| 76 | else |
| 77 | old |= bit ; |
| 78 | |
| 79 | wiringPiI2CWrite (node->fd, old) ; |
| 80 | node->data2 = old ; |
| 81 | } |
| 82 | |
| 83 | |
| 84 | /* |
nothing calls this directly
no test coverage detected