Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

waveshare-7.5inch-driver

Waveshare 7.5inch E-Ink Python driver.

Dependencies

  • python3
  • python3-pillow
  • python3-rpi.gpio
  • python3-spidev (v3.3, newer then raspbian)

Usage

from PIL import Image, ImageDraw, ImageFilter

import epd7in5

# Create buffer
Himage = Image.new('1', (epd7in5.EPD_WIDTH, epd7in5.EPD_HEIGHT), 255)
draw = ImageDraw.Draw(Himage)
draw.text((20, 20), "hello world", fill=0)

# Get buffer
buf = epd.getbuffer(Himage)

# Create driver
epd = epd7in5.EPD()

# Init driver
epd.init()

# clear the screen
epd.clear()

# Display buffer
epd.display(buf)

# Set display in deep sleep
epd.sleep()

License

This code is MIT licensed, code is inspired by/borrowed from waveshare's driver.

About

Waveshare 7.5inch E-Ink Python driver

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages