#iterator #byte #embedded-hal-async #embedded-hal-i2c #embedded-devices #write #buffer

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

#1040 in Embedded development

Download history 44/week @ 2024-06-07 13/week @ 2024-06-14 35/week @ 2024-06-21 138/week @ 2024-06-28 164/week @ 2024-07-05 79/week @ 2024-07-12 216/week @ 2024-07-19 358/week @ 2024-07-26 373/week @ 2024-08-02 58/week @ 2024-08-09 811/week @ 2024-08-16 505/week @ 2024-08-23 274/week @ 2024-08-30 287/week @ 2024-09-06 202/week @ 2024-09-13 81/week @ 2024-09-20

864 downloads per month
Used in 2 crates

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