1. intro

./pic/2.7inch-e-paper-hat-3.jpg

2. installation

2.1. raspbian

apt-get install -y python-dev python-smbus python-imaging
wget https://www.waveshare.com/w/upload/f/f5/2.7inch-e-paper-hat-code.7z
apt-get install -y p7zip-full
p7zip -d 2.7inch-e-paper-hat-code.7z
cd raspberrypi/python/
python main.py

2.2. centos

yum -y install p7zip
wget https://www.waveshare.com/w/upload/f/f5/2.7inch-e-paper-hat-code.7z
7za x 2.7inch-e-paper-hat-code.7z
cd raspberrypi/python/
python main.py
Traceback (most recent call last):
  File "main.py", line 27, in <module>
    import epd2in7
  File "/root/raspberrypi/python/epd2in7.py", line 27, in <module>
    import epdif
  File "/root/raspberrypi/python/epdif.py", line 27, in <module>
    import spidev
ImportError: No module named spidev
/usr/lib/python2.7/site-packages/

3. references