AHT20.I2CDevice (aht20 v0.2.2) View Source

Lets you communicate with hardware devices using the I2C protocol. A thin wrapper of elixir-circuits/circuits_i2c.

Link to this section Summary

Functions

Open an I2C bus.

Initiate a read transaction to the I2C device at the specified bus_address.

Write data to the I2C device at bus_address.

Write data to an I2C device and then immediately issue a read.

Link to this section Functions

Open an I2C bus.

Link to this function

read(reference, bus_address, bytes_to_read)

View Source

Initiate a read transaction to the I2C device at the specified bus_address.

Link to this function

write(reference, bus_address, data)

View Source

Write data to the I2C device at bus_address.

Link to this function

write_read(reference, bus_address, data, bytes_to_read)

View Source

Write data to an I2C device and then immediately issue a read.