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/40/head
parent
ee4a6e4f2e
commit
5179e40adf
Loading…
Reference in New Issue