0

Metro M0 Express with 1.5" color OLED SPI SSD1351
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Metro M0 Express with 1.5" color OLED SPI SSD1351

by simonl1 on Sun May 23, 2021 1:57 am

The SPI pins are connected to ICSP header.
What pin numbers need to assign to the SSD1351 OLED test program for M0 Express?

see test program on Adafruit SSD 1351 library (line # 31 to 35)

Code: Select all | TOGGLE FULL SIZE
// You can use any (4 or) 5 pins
#define SCLK_PIN 2
#define MOSI_PIN 3
#define DC_PIN   4
#define CS_PIN   5
#define RST_PIN  6

simonl1
 
Posts: 2
Joined: Sat Mar 02, 2013 2:59 am

Re: Metro M0 Express with 1.5" color OLED SPI SSD1351

by blnkjns on Sun May 23, 2021 2:48 am

You need to set the ones not on the ICSP header, so CS, DC and RST. DC is a bit weird. It kind of seems to take the function of CS which does pretty much nothing.
You can keep the numbers for those 3 same as the example, but feel free to move them around to other pins.

blnkjns
 
Posts: 663
Joined: Fri Oct 02, 2020 3:33 am

Re: Metro M0 Express with 1.5" color OLED SPI SSD1351

by simonl1 on Sun May 23, 2021 1:16 pm

Thanks. It works

I comment out line# 31, 32, 52 and un-commend line #58 on the "test" program in SSD1351 library.
and set pin SCK and MOSI of OLED on ICSP header.
simonl1
 
Posts: 2
Joined: Sat Mar 02, 2013 2:59 am

Please be positive and constructive with your questions and comments.