rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
301 stars 68 forks source link

Use the embedded-hal::digital::v2::OutputPin #83

Closed eldruin closed 5 years ago

eldruin commented 5 years ago

Very similarly to https://github.com/jamwaffles/sh1106/pull/8, I added an error enum with two types: a communication error type and a pin error type which allows users to handle I2C or SPI communication errors as well as SPI pin setting errors. I had to make reset fallible, though. User code will then get an unused Result warning. No other changes are required in user code if the results were simply unwrapped.

jamwaffles commented 5 years ago

Thanks @eldruin! I'll get this released when I'm next on a Linux machine.

jamwaffles commented 5 years ago

Released in 0.2.5.