Waveshare ESP8266 Driver Board Pins Mapping
I’ve been playing with an e-paper ESP866 Driver Board, and a 2.7" E-Ink display from Waveshare. Arduino C++ looks manageable. One strange thing, though. In both board’s documentation and GxEPD2 library’s examples, they say the display is connected to pins as BUSY → GPIO16, RST → GPIO5, DC → GPIO4, CS → GPIO15. This mapping seems wrong.
After digging through the code examples from Waveshare’s Wiki, the correct mapping is the following:
BUSY → GPIO5, RST → GPIO2, DC → GPIO4, CS → GPIO15
That’s how the initialisation of the main
GxEPD2 class for my 2.7" display looks like now:
#define ENABLE_GxEPD2_GFX 0 #include <GxEPD2_BW.h> // mapping of Waveshare e-Paper ESP8266 Driver Board GxEPD2_BW<GxEPD2_270, GxEPD2_270::HEIGHT> display(GxEPD2_270(/*CS=15*/ SS, /*DC=4*/ 4, /*RST=2*/ 2, /*BUSY=5*/ 5));