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

HW SPI on ESP32 not working #3

Open
Harvie opened this issue Jul 2, 2019 · 0 comments
Open

HW SPI on ESP32 not working #3

Harvie opened this issue Jul 2, 2019 · 0 comments

Comments

@Harvie
Copy link

Harvie commented Jul 2, 2019

Hello, have you tried this in SPI mode on ESP32? I have esp32 devkit v1

image

I checked all pins using logic analyzer and there is no SPI data and clock anywhere. I used HW SPI like this (=default config in example). Even tried doing mos config-set i2c.enable=false spi.enable=true.

d2 = new Adafruit_SSD1306(21 /* DC */, 17 /* RST */, 5 /* CS */,
                            Adafruit_SSD1306::RES_128_64);

On the other hand, when i use soft SPI, i suddenly start seeing clock and data using logic analyzer:

  d2 = new Adafruit_SSD1306(33 /* SID */, 32 /* SCLK */, 21 /* DC */, 17 /* RST */, 5 /* CS */,
                            Adafruit_SSD1306::RES_128_64);

Any ideas what causes this?

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

No branches or pull requests

1 participant