https://github.com/dmowcomber/epaper
Waveshare 2.7inch e-paper display example for Raspberry Pi written in Go
https://github.com/dmowcomber/epaper
arm golang spi
Last synced: 6 months ago
JSON representation
Waveshare 2.7inch e-paper display example for Raspberry Pi written in Go
- Host: GitHub
- URL: https://github.com/dmowcomber/epaper
- Owner: dmowcomber
- License: apache-2.0
- Created: 2019-02-19T01:29:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-20T17:36:43.000Z (about 1 year ago)
- Last Synced: 2024-11-08T20:45:55.857Z (7 months ago)
- Topics: arm, golang, spi
- Language: Go
- Homepage:
- Size: 2.32 MB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# epaper
epaper is an example of how to display an image to a Waveshare 2.7 inch epaper display hat with the Raspberry Pi 3 B+ written in Golang.
## running the demo
#### Setup
[Setup SPI](https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md) by uncommenting `dtparam=spi=on` in `/boot/config.txt`. Then reboot `sudo reboot`.#### Run
Run an epaper example with Golang
```bash
go run -mod=vendor ./examples/image
```Run epaper with Docker
```
docker build . -t dmowcomber/epaper
docker run --rm -v /dev/mem:/dev/mem --device /dev/gpiomem --device /dev/spidev0.0 dmowcomber/epaper
```
![]()