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

ST7920 and ESP8266 HW SPI #322

Closed
pccr10001 opened this issue Jul 29, 2017 · 12 comments
Closed

ST7920 and ESP8266 HW SPI #322

pccr10001 opened this issue Jul 29, 2017 · 12 comments

Comments

@pccr10001
Copy link

Hello.

I tried to connect ST7920 128x64 LCD to ESP8266.
When I tried SW SPI is working but slow.
After switch to HW SPI and nothing showed on LCD.

I found a solution that I changed spi_mode in u8x8_st7920_128x64_display_info(u8x8_d_st7920.c) to 0.

#if defined(ESP8266)
  /* spi_mode = */ 0,
#else
  /* spi_mode = */ 3,
#endif

and everything worked.

@olikraus
Copy link
Owner

I think this is a bug in the esp8266 lib.

@microdimmer
Copy link

That bug still exists, pccr10001's solution worked for me

@olikraus
Copy link
Owner

olikraus commented Mar 6, 2018

I posted the problem already:

esp8266/Arduino#2416

From my perspective it does not make sense to fix this in U8g2. Maybe add comments to the issue above and mention, that this does not work for you correctly.

@MaxESP
Copy link

MaxESP commented Sep 28, 2018

hello guys can you provide the link of library and pin sheme i have the same lcd.

tryied to connect in i2c via MCP23017 on my esp8266 v2 with out result

@Misiu
Copy link

Misiu commented Dec 27, 2018

@olikraus I know this is a bit old issue but does the problem still exists?
I'm planning to use ST7920 with Wemos D1 and I don't know should I stick with this display or should I search for a different display.

@olikraus
Copy link
Owner

I have not heard any news regarding this problem.

@Misiu
Copy link

Misiu commented Dec 27, 2018

@olikraus I've already posted a comment in 2416 issue.
Hopefully, this will be resolved some day.

@llocani
Copy link

llocani commented Jan 11, 2020

Hello, i did this change in the u8x8_d_st7920.c in src/clib/u8x8_d_st7920.c and recompile my project but the problem remains.
Do i have to do something else like tell arduino studio to recompile this file?
Thanks in advance.

@olikraus
Copy link
Owner

Nothing needs to be modified, the problem should be fixed in the ESP software. My pull request was included: esp8266/Arduino#5948

See also: #53

@llocani
Copy link

llocani commented Jan 11, 2020

Thanks for de quick response.
Should i update the u8g2 and spi libraries? a particular version?
Thanks in advance

@olikraus
Copy link
Owner

You only need to update the ESP8266 environment (which includes SPI lib)

@llocani
Copy link

llocani commented Jan 12, 2020

Then i guess iv'e killed my display : (
Thank you anyway!

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

6 participants