yaq/traits/uses-i2c


Device which communicates over an I2C bus with a given address

requires

uses-serial

configuration

Daemons with the uses-i2c trait expect the following configuration:

i2c_addr (int)
I2C bus address.

messages

Daemons with the uses-i2c trait expose the following public messages:

direct_serial_write
Expose direct access to the serial port to clients. This should not be encouraged for normal use, but may be very important for debugging. If a device is expected to return data, it should be logged at the INFO level, not returned to the client. This is done to allow long tasks to be run asynchronously, and to explicitly discourage use of this method except when debugging. Setting `busy` to true is encouraged, but individual daemon writers should consider their own use case.
from uses-serial
parameters:

message (bytes)

daemons

The following daemons implement the uses-i2c trait:

ads1115
mcp3428
mcp9600


built 2020-10-27 13:47:08                                      CC0: no copyright