therealprof / display-interface

Rust crates providing a generic interface for display drivers and some default implementations (GPIO, SPI and I2C)
Apache License 2.0
74 stars 27 forks source link

How do I instantiate async I2CInterface? #42

Closed mryndzionek closed 9 months ago

mryndzionek commented 11 months ago

How do I instantiate async I2CInterface? It seems I need an async constructor with embedded_hal_async::i2c::I2c bound instead of embedded_hal::i2c::I2c, but it's missing: https://github.com/therealprof/display-interface/blob/master/i2c/src/lib.rs#L30