classstuds::I2C
sys::Obj studs::I2C
I2C allows you to communicate over serial I2C interfaces.
See I2C chapter for details.
- close
Void close()Close this port.
- open
Open a I2C port with given I2C bus name. Throws IOErr if port could not be opended.
- read
Read
lenbytes from the device ataddr. Throw IOErr if read failed.- write
This write(Int addr, Buf data)Write the specified
datato the device ataddr. Throws IOErr if write failed. Return this.