🤖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

    General
    3
    3
    4.6k
    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
      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
        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
          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
          • First post
            Last post