FIXED: Nano Every + HW SPI on OLED

Good morning all. I am using a Nano Every with the Adafruit_SSD1351.h library. I can get the display to work with software SPI, however for some reason I can't get the hardware SPI to work. I have the following:

#define OLED_DC     8
#define OLED_CS     10
#define OLED_RESET  9
Adafruit_SSD1351 tft(SCREEN_WIDTH, SCREEN_HEIGHT,
  &SPI, OLED_DC, OLED_RESET, OLED_CS);

With the OLED clk on Pin D13 and DIN on D11 (MOSI?).

If I define SCLK and MOSI as D13 and D11 it works fine... I'm under the assumption that I have the wrong pins for harware SCLK and MOSI, but according to

Figured it out - the sequence of DC, RESET, and CS was wrong...

Here it is fixed.

Adafruit_SSD1351 tft = Adafruit_SSD1351(128, 128, &SPI, 10, 8, -1); //hardware SPI (Screenwidth, screenheight, &SPI, CS_PIN, DC_PIN, RST_PIN); 

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.