Crates.io | i2c-write-iter |
lib.rs | i2c-write-iter |
version | 1.0.0 |
source | src |
created_at | 2023-11-28 21:37:14.507693 |
updated_at | 2024-01-26 05:35:09.305886 |
description | Exports iterator based parallels to embedded-hal & embedded-hal-async for Write & WriteRead |
homepage | |
repository | https://github.com/ithinuel/i2c-write-iter |
max_upload_size | |
id | 1052388 |
size | 5,788 |
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.