The Arduino program in this package only supports the Arduino series development boards, not the ESP32, ESP8266 and other development boards that use the Arduino IDE for development.
ESP32 development board use: https://www.waveshare.com/wiki/E-Paper_ESP32_Driver_Board
ESP8266 development board use: https://www.waveshare.com/wiki/E-Paper_ESP8266_Driver_Board