mirror of https://github.com/periph/devices
waveshare213v2: Use color for clearing
This is an API-breaking change, albeit a simple one: Previously the Dev.Clear function received a byte named "color". It was sent directly to the display, thus acting more like a pattern to fill the display with. In practice only 0 and 255 are likely to be used. With this change the function is changed to receive a value of type color.Color which is then converted to image1bit.Bit before filling the display. The latter is also given a unittest. Signed-off-by: Michael Hanselmann <public@hansmi.ch>pull/39/head
parent
b590a6ef60
commit
e759762a8c
Loading…
Reference in New Issue