write
| 118 | // |
| 119 | // write |
| 120 | int I2CIO::write ( uint8_t value ) |
| 121 | { |
| 122 | int status = 0; |
| 123 | |
| 124 | if ( _initialised ) |
| 125 | { |
| 126 | // Only write HIGH the values of the ports that have been initialised as |
| 127 | // outputs updating the output shadow of the device |
| 128 | _shadow = ( value & ~(_dirMask) ); |
| 129 | |
| 130 | Wire.beginTransmission ( _i2cAddr ); |
| 131 | Wire.write ( _shadow ); |
| 132 | status = Wire.endTransmission (); |
| 133 | } |
| 134 | return ( (status == 0) ); |
| 135 | } |
| 136 | |
| 137 | // |
| 138 | // digitalRead |
no test coverage detected