Experimenting with Waveshare ePaper for the Raspberry Pi
Writing code in Kotlin Native to control and display images and text on a Waveshare ePaper HAT for the Raspbery Pi.
Makes use of the bcm2835 C library for hardware control. It recreates some of the Waveshare GUI C example functions, in Kotlin, in a library I am calling Khartoum. So far, the following functions are available:
The Khartoum binary must be run as root (sudo -E ./Khartoum.kexe
) on the Raspberry Pi.
- Kotlinx serialization
- Kotlinx datetime
- Native c-libraries:
- libCurl
- bcm2835 C library
Requires two environment variables to be set:
- SPOTIFY_CLIENT
- SPOTIFY_SECRET
Getting these is quite complicated.
Need the -E
option to be passed to sudo for them to be available.