https://github.com/paw3lx/epaperhatcore
EPaperHatCore is a dotnet core library for Waveshare e-Paper HAT display
https://github.com/paw3lx/epaperhatcore
dotnetcore epaper raspberry-pi waveshare
Last synced: 9 months ago
JSON representation
EPaperHatCore is a dotnet core library for Waveshare e-Paper HAT display
- Host: GitHub
- URL: https://github.com/paw3lx/epaperhatcore
- Owner: paw3lx
- Created: 2019-03-15T19:39:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T16:38:50.000Z (about 6 years ago)
- Last Synced: 2025-05-04T08:36:44.998Z (12 months ago)
- Topics: dotnetcore, epaper, raspberry-pi, waveshare
- Language: C#
- Homepage: https://pawelskaruz.pl
- Size: 44.9 KB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EPaperHatCore
EPaperHatCore is a dotnet core library for Waveshare e-Paper HAT display
This library provides a simple way to access e-Paper display on the Raspberry Pi.
[](https://ci.appveyor.com/project/paw3lx/epaperhatcore)
## Installation
EPaperHatCore is available on [MyGet](https://www.myget.org/feed/epaperhatcore/package/nuget/EPaperHatCore)
[](https://www.myget.org/feed/epaperhatcore/package/nuget/EPaperHatCore)
### Package manager
```bash
Install-Package EPaperHatCore -Version 0.1.0 -Source https://www.myget.org/F/epaperhatcore/api/v3/index.json
```
### .NET CLI
```bash
dotnet add package EPaperHatCore --version 0.1.0 --source https://www.myget.org/F/epaperhatcore/api/v3/index.json
```
## Getting started
```cs
//initialize ePaper display
var ePaper = new Epaper(176, 264);
ePaper.Initialize();
//create black and red screens
var blackScreen = new Screen(176, 264, Rotate.ROTATE_270, Constants.WHITE);
var redScreen = new Screen(176, 264, Rotate.ROTATE_270, Constants.WHITE);
//draw something on screen using a font
var font = new Font();
blackScreen.DrawString(10, 20, "Blac text", font, Color.WHITE, Color.BLACK);
blackScreen.DrawString(10, 50, "Red text", font, Color.WHITE, Color.RED);
ePaper.DisplayScreens(blackScreen, redScreen);
```