Circuits.I2C.I2CDev (circuits_i2c v2.1.0)
View SourceCircuits.I2C backend for the Linux i2c-dev interface
This backend works on Nerves, embedded Linux, and desktop Linux.
Summary
Functions
Return the I2C bus names on this system
Return information about this backend
Open an I2C bus
Functions
Return the I2C bus names on this system
No supported options
Return information about this backend
Open an I2C bus
Bus names are typically of the form "i2c-n"
and available buses may be
found by calling Circuits.I2C.bus_names/0
.
Options:
:retries
- the number of times to retry a transaction. I.e. 2 retries means the transaction is attempted at most 3 times. Defaults to 0 retries.:timeout
- the time in milliseconds to wait for a transaction to complete. Any value <0 means to use the device driver default which is probably 1000 ms.