mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
extmod/machine_i2c: Add optional support for write-then-read transfers.
This option is useful for ports where it's more efficient to do a full I2C transfer in one go. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1585,6 +1585,11 @@ typedef double mp_float_t;
|
||||
#define MICROPY_PY_MACHINE_I2C (0)
|
||||
#endif
|
||||
|
||||
// Whether the low-level I2C transfer function supports a separate write as the first transfer
|
||||
#ifndef MICROPY_PY_MACHINE_I2C_TRANSFER_WRITE1
|
||||
#define MICROPY_PY_MACHINE_I2C_TRANSFER_WRITE1 (0)
|
||||
#endif
|
||||
|
||||
// Whether to provide the "machine.SoftI2C" class
|
||||
#ifndef MICROPY_PY_MACHINE_SOFTI2C
|
||||
#define MICROPY_PY_MACHINE_SOFTI2C (0)
|
||||
|
||||
Reference in New Issue
Block a user