therealprof / display-interface

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

parallel-gpio: Fix bug with fallible pins #44

Closed GrantM11235 closed 10 months ago

GrantM11235 commented 10 months ago

If a pin fails while updating the bus, the last value won't be updated.

The fix is to store the last value as an Option. This also allows new to be infallible.