Commit Graph

4 Commits (bb4ba5709686e80dceccfd006a0532bc30f13725)

Author SHA1 Message Date
Michael Hanselmann 347b4e237c waveshare213v2: Make busy a PinIn, use WaitForEdge
The busy pin from the e-paper display is only used to read, not to
write, and thus there's no need for the PinIO interface. PinIn is
enough.

In addition the WaitForEdge function can be used to shorten the delays
when waiting for the display to become idle. Spurious or missed edges
are acceptable: the delay isn't very long.
4 years ago
Michael Hanselmann abc5f2f9c2 waveshare213v2: Move code waiting for idle state to error handler
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
Michael Hanselmann b25f6410ea waveshare213v2: Move command and data sending code into error handler
This code isn't used directly and there's no need to keep the additional
complexity.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago
Michael Hanselmann 969dc07218 waveshare213v2: Move error handler to separate file
The structure definition and the functions were already split up. Moving
to a separate file simplifies the code structure.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
4 years ago