Skip to content

Android Things driver for Waveshare e-paper HAT display modules, like the 7.5" display.

License

Notifications You must be signed in to change notification settings

smartnsoft/wsepd-androidthings

 
 

Repository files navigation

Download License: MIT TeamCity status

Waveshare e-Paper HAT Display module driver for Android Things

A very simple Waveshare e-Ink display module driver implementation for Android Things

Preview

Download

dependencies {
    implementation 'com.smartnsoft.androidthings:epaper-hat-driver:0.1.0'
}

Usage

// 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();

Hardware compatible

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

Hardware connection

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)

Kudos to

License

This SDK is under the MIT license.

Author

This Android Things driver for the Waveshare ePaper HAT was proudly made at Smart&Soft, Paris FRANCE

About

Android Things driver for Waveshare e-paper HAT display modules, like the 7.5" display.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%