A Go Package to control and display data on Waveshare's 4.2 inch black and white e-paper cloud module easily.
I reverse-engineered the original protocol used to communicate to the display by using Wireshark to monitor TCP traffic to and from the device, then later found official documentation (although not very clear), and created a neat library to display images to the screen, and read data from the device, quickly and easily.
The library can:
- Display images, resizing and dithering when needed.
- Restart the display
- Get the display's battery level
- Shutdown/Sleep the display
- Get the display's ID
- Unlock displays that are locked, using their PIN/password.
All examples support multiple displays connecting simultaneously.
The offical waveshare documentation does not cover everything about the device and is very poorly written.
I re-created the most important parts of the documentation in the DISPLAYDOCS.md file, adding small code examples in Go, and re-writing the majority of it to hopefully be understood easier than the official version.