| 129 | */ |
| 130 | |
| 131 | static int myDigitalRead (struct wiringPiNodeStruct *node, int pin) |
| 132 | { |
| 133 | serialPutchar (node->fd, 'r') ; // Send read command |
| 134 | serialPutchar (node->fd, pin - node->pinBase) ; |
| 135 | return (serialGetchar (node->fd) == '0') ? 0 : 1 ; |
| 136 | } |
| 137 | |
| 138 | |
| 139 | /* |
nothing calls this directly
no test coverage detected