2022 M5 Stamp Pico and Waveshare epaper Arduino Library?
hausofpayne last edited by
Site says previous topic is old so I started a new one on its suggestion.
Hi there. I know there's an M5Paper product.
But I'd like to connect a Waveshare 1.54" bw epaper display to an M5Stamp Pico board.
Are there any Arduino libraries available to do this?what are they called?
What are the M5 pins that I connect the DI, SCK, CS, Dc, BUSY and RESET pins.
Thanks for your suggestions/recommendations.
felmue last edited by
ESP32 allows to assign almost any functionality (SPI, I2C, etc.) to almost any GPIOs.
- DI <--> 26
- SCK <--> 18
- CS <--> 21
- DC <--> 22
- BUSY <--> 32
- RESET <--> 33
On line 118 of the example you set the GPIOs for CS, DC, RST and BUSY:
GxEPD2_DISPLAY_CLASS<GxEPD2_DRIVER_CLASS, MAX_HEIGHT(GxEPD2_DRIVER_CLASS)> display(GxEPD2_DRIVER_CLASS(/*CS=*/ 21, /*DC=*/ 22, /*RST=*/ 33, /*BUSY=*/ 32));
On line 150 of the example you set the GPIOs for SPI:
SPI.begin(18, 36, 26, 21); // map and init SPI pins SCK(18), MISO(36), MOSI(26), SS(21)