#iterator #i2c #embedded-hal-async #write #byte #read-write #exports

i2c-write-iter

Exports iterator based parallels to embedded-hal & embedded-hal-async for Write & WriteRead

3 releases (1 stable)

1.0.0 Jan 26, 2024
1.0.0-rc.1.4 Jan 8, 2024
1.0.0-rc.1.3 Nov 28, 2023

#957 in Hardware support

Download history 7/week @ 2024-01-08 7/week @ 2024-01-22 110/week @ 2024-01-29 29/week @ 2024-02-05 213/week @ 2024-02-19 137/week @ 2024-02-26 51/week @ 2024-03-04 57/week @ 2024-03-11 38/week @ 2024-03-18 14/week @ 2024-03-25 53/week @ 2024-04-01 83/week @ 2024-04-08 57/week @ 2024-04-15

216 downloads per month
Used in rp2040-hal

MIT/Apache

6KB
77 lines

I2C Write Iter

Iterator based write operations where removed from the embedded-hal in: https://github.com/rust-embedded/embedded-hal/pull/440

Yet, iterator based writes come in very handy especially for devices like the sh1107 display controller where data needs to be interleaved with control bytes.

This crates allows for hal implementations to support those use cases. HAL implementations requiring DMA backed transactions can still internally use a buffer to fill from the iterator.

Dependencies

~62KB