Commit Graph

5 Commits (1da707711a3e70fabbcdacfca933e1fac38a000a)

Author SHA1 Message Date
Michael Hanselmann 1da707711a waveshare213v2: Add constants for commands
Translate the command names from the datasheet into constant names,
similar to `epd/epd.go`. These names make it easier to understand what
the driver does.

One command, 0x37, is not documented in any of the datasheets available
(Waveshare 2.13inch e-Paper, Good Display GDEH0213B72).

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
5 years ago
Michael Hanselmann a0a6b6e8da waveshare213v2: Call Dev.Init in example code
Without initializing the hardware nothing is shown on the display.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
5 years ago
Michael Hanselmann eb5b35e205 waveshare213v2: Avoid using strconv.Itoa
fmt.Sprintf() can format numbers directly using the "%d" format
specifier.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
5 years ago
Dan Kortschak 960e8d343b
waveshare2in13v2: add example (#8) 5 years ago
Sönke Brightside 296894bc24
Separate waveshare2in13v2 driver (#2)
Adds support for EPD2in13v2
5 years ago