A very simple Waveshare e-Ink display module driver implementation for Android Things
dependencies {
implementation 'com.smartnsoft.androidthings:epaper-hat-driver:0.1.0'
}
// Access the EPD7X5C display
EPaperDisplay display;
EPaperDisplay.DeviceType epd7x5c = EPaperDisplay.DeviceType.Preset.EPD7X5C.deviceType;
display = EPaperDisplayFactory.create(SPI_NAME, BUSY_GPIO, RESET_GPIO, DC_GPIO, epd7x5c, Orientation.PORTRAIT);
// Clear screen
display.clear();
// Set a bitmap
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.rocket);
display.setPixels(bitmap);
// Refresh the screen
display.refresh();
// Close the display when finished
display.close();
Device | Color type | Tested |
---|---|---|
Waveshare 7.5inch e-Paper Module (A) | B&W | Yes |
Waveshare 7.5inch e-Paper Module (B) | B&W +Red | Yes |
Waveshare 7.5inch e-Paper Module (C) | B&W +Yellow | Yes |
Waveshare 5.83inch e-Paper Module (A) | B&W | Yes |
Waveshare 5.83inch e-Paper Module (B) | B&W +Red | No |
Waveshare 5.83inch e-Paper Module (C) | B&W +Yellow | No |
e-Paper | Raspberry Pi 3 | Pico i.MX7D |
---|---|---|
3.3V | 3.3V | 3.3V |
GND | GND | GND |
DIN | MOSI (#19) | MOSI (#19) |
CLK | SCLK (#23) | SCLK (#23) |
CS | CE0 (#24) | SPI3 (SS1) (#24) |
DC | BCM25 (#22) | GPIO5_IO00 (#22) |
RST | BCM17 (#11) | GPIO1_IO10 (#15) |
BUSY | BCM24 (#18) | GPIO6_IO12 (#18) |
- Novoda, and Blundell for their InkypHat driver
- Nilhcem for his WSEPD driver
This SDK is under the MIT license.
This Android Things driver for the Waveshare ePaper HAT was proudly made at Smart&Soft, Paris FRANCE