MCPcopy Create free account
hub / github.com/SmingHub/Sming / write

Method write

Sming/Libraries/LiquidCrystal/I2CIO.cpp:120–135  ·  view source on GitHub ↗

write

Source from the content-addressed store, hash-verified

118//
119// write
120int 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

Callers 1

digitalWriteMethod · 0.95

Calls 2

beginTransmissionMethod · 0.45
endTransmissionMethod · 0.45

Tested by

no test coverage detected