Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to drive a 3-wire SPI display? #102

Open
gaaf opened this issue May 2, 2023 · 1 comment
Open

How to drive a 3-wire SPI display? #102

gaaf opened this issue May 2, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@gaaf
Copy link
Contributor

gaaf commented May 2, 2023

Hi,

I'm trying to drive an oled display in 3-wire SPI mode (no D/C line).

I initialize lcdgfx with DC pin set to -1. Display stays black no matter what I try.

#define VSPI_MOSI_PIN    2
#define VSPI_CLK_PIN    15
#define VSPI_CS_PIN     12
#define VSPI_DC_PIN     -1
#define VSPI_RST_PIN    -1

DisplaySSD1351_128x128x16_SPI display(VSPI_RST_PIN,{-1, VSPI_CS_PIN, VSPI_DC_PIN, 0, VSPI_CLK_PIN, VSPI_MOSI_PIN});

This oled is the only SPI device I have, so I have no way to verify if the problem is in the oled, lcdgfx or the platform.
At least with 4-wire SPI the display is working fine.

Is 3-wire SPI supported by llcdgfx

(on the oled pcb, I've set the BS jumper to 1).

@gaaf gaaf added the question Further information is requested label May 2, 2023
@lexus2k
Copy link
Owner

lexus2k commented May 3, 2023

Hello Alex
Only 4-wire SPI interface is supported by the library.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants