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

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

#1588 in Embedded development

Download history 291/week @ 2024-07-21 317/week @ 2024-07-28 248/week @ 2024-08-04 281/week @ 2024-08-11 770/week @ 2024-08-18 321/week @ 2024-08-25 273/week @ 2024-09-01 411/week @ 2024-09-08 72/week @ 2024-09-15 178/week @ 2024-09-22 215/week @ 2024-09-29 56/week @ 2024-10-06 379/week @ 2024-10-13 124/week @ 2024-10-20 135/week @ 2024-10-27 99/week @ 2024-11-03

762 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