🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    2022 M5 Stamp Pico and Waveshare epaper Arduino Library?

    General
    2
    2
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hausofpayne
      last edited by

      Re: Connecting Epaper display to m5stack core or other models ? (Waveshare)

      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.

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @hausofpayne

        ESP32 allows to assign almost any functionality (SPI, I2C, etc.) to almost any GPIOs.

        Using the example GxEPD2_WS_ESP32_Driver.ino from the GxEPD2 library with the following GPIO setup worked for me. (Note: I used a Waveshare 2.9" ePaper for my test.)

        • 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)
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post