| 112 | |
| 113 | |
| 114 | void PCF8575::write(const uint8_t pin, const uint8_t value) |
| 115 | { |
| 116 | if (pin > 15) |
| 117 | { |
| 118 | _error = PCF8575_PIN_ERROR; |
| 119 | return; |
| 120 | } |
| 121 | if (value == LOW) |
| 122 | { |
| 123 | _dataOut &= ~(1 << pin); |
| 124 | } |
| 125 | else |
| 126 | { |
| 127 | _dataOut |= (1 << pin); |
| 128 | } |
| 129 | write16(_dataOut); |
| 130 | } |
| 131 | |
| 132 | |
| 133 | uint16_t PCF8575::valueOut() |
no outgoing calls
no test coverage detected