You are here: Home / Hardware / Waveshare e-paper hat

Waveshare e-paper hat

pacman -S base-devel git python2-setuptools python-pillow
mkdir build
cd build

# python RPi.gpio
git clone https://aur.archlinux.org/python-rpi.gpio.git
pushd python-rpi.gpio
grep 'arch=(.*armv6h' PKGBUILD || \
  sed -i -E "s/(arch=.*)\)/\1 'armv6h'\)/" PKGBUILD
makepkg
sudo pacman -U python-rpi.gpio*pkg.tar.xz
popd

# spidev
git clone https://aur.archlinux.org/python-spidev.git
pushd python-spidev
sed -i -E 's|cd "\$srcdir/.*"|cd "$srcdir/spidev-$pkgver"|' PKGBUILD
makepkg
sudo pacman -U python-spidev*pkg.tar.xz
popd
# enable spi
dtparam=spi=on

for the demo

pacman -S freetype2 ttf-freefont

See also