caemor / epd-waveshare

Drivers for various EPDs from Waveshare
ISC License
207 stars 128 forks source link

More generic error handling #204

Open vhdirk opened 3 weeks ago

vhdirk commented 3 weeks ago

So, I'm working towards revisiting #175 so it could be merged. I'm splitting that up to make the whole process more manageable.

Since in #175 I'm trying to use as little polling as possible, I wanted to have better error handling. Waiting for an edge on a pin is wholly different from SPI communication. In the current code base, errors originating from, for instance, pulling the reset pin low are completely ignored.

I'd love to hear your opinion!