🤖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?

    Scheduled Pinned Locked Moved General
    2 Posts 2 Posters 2.8k Views
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post