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

    [Solved]How can I connect m5stack spi 4 wire connect to oled rgb display

    Scheduled Pinned Locked Moved General
    3 Posts 3 Posters 5.9k Views 1 Watching
    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.
    • P Offline
      piotrgl1983f
      last edited by m5-docs

      Hi,
      how can I connect with this display:
      link text

      to m5stack

      interfejs SPI 4 wire

      library driver:
      link text

      language:| python

      "
      """SSD1351 demo (fonts)."""
      from time import sleep
      from ssd1351 import Display, color565
      from machine import Pin, SPI
      from xglcd_font import XglcdFont

      def test():
      """Test code."""
      spi = SPI(2, baudrate=14500000, sck=Pin(18), mosi=Pin(23))
      display = Display(spi, dc=Pin(17), cs=Pin(5), rst=Pin(16))

      ....
      "

      1 Reply Last reply Reply Quote 0
      • m5-docsM Offline
        m5-docs
        last edited by

        You can connect to some gpio pins. Because of esp32, the peripheral functions can be mapped to any gpio pins. So you can use any gpio to realize it expect of GPIO34-39 which are input pin only.

        M5Stack documentation URL

        https://docs.m5stack.com

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL Offline
          lukasmaximus
          last edited by

          The pinouts of the m5stack are similar to most esp32 dev boards, perhaps this tutorial will help https://www.youtube.com/watch?v=a7DrFqqu-78&feature=youtu.be

          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