From Waveshare Wiki
2.13inch e-Paper HAT (B) Manual
Start with Raspberry Pi
Using BCM2835, WiringPi, file IO, RPI (Python) library development routines and instructions
Starting from the STM32
Use STM32CubeMX to develop routines based on STM32F103ZET6 and their usage instructions