[Solved]How can I connect m5stack spi 4 wire connect to oled rgb display
piotrgl1983f last edited by m5-docs
how can I connect with this display:
interfejs SPI 4 wire
"""SSD1351 demo (fonts)."""
from time import sleep
from ssd1351 import Display, color565
from machine import Pin, SPI
from xglcd_font import XglcdFont
spi = SPI(2, baudrate=14500000, sck=Pin(18), mosi=Pin(23))
display = Display(spi, dc=Pin(17), cs=Pin(5), rst=Pin(16))
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.
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