Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/v79/khartoum
A library and app to display text and images on an Raspberry Pi eInk display
https://github.com/v79/khartoum
epaper kotlin-native raspberrypi
Last synced: 6 days ago
JSON representation
A library and app to display text and images on an Raspberry Pi eInk display
- Host: GitHub
- URL: https://github.com/v79/khartoum
- Owner: v79
- Created: 2024-09-06T06:56:16.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-28T08:09:20.000Z (3 months ago)
- Last Synced: 2024-12-25T05:52:41.133Z (10 days ago)
- Topics: epaper, kotlin-native, raspberrypi
- Language: C
- Homepage:
- Size: 1.68 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Khartoum
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](https://www.airspayce.com/mikem/bcm2835/index.html) C library for hardware control. It recreates some of the [Waveshare GUI C](https://github.com/waveshare/e-Paper/tree/master/RaspberryPi%26JetsonNano/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.
### Libraries used
- Kotlinx serialization
- Kotlinx datetime
- Native c-libraries:
- libCurl
- [bcm2835](https://www.airspayce.com/mikem/bcm2835/index.html) C library### Links and references
### Spotify
Requires two environment variables to be set:
- SPOTIFY_CLIENT
- SPOTIFY_SECRETGetting these is quite complicated.
Need the `-E` option to be passed to sudo for them to be available.