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

Support ST7920 display #563

Closed
Misiu opened this issue Jan 11, 2020 · 13 comments
Closed

Support ST7920 display #563

Misiu opened this issue Jan 11, 2020 · 13 comments

Comments

@Misiu
Copy link

Misiu commented Jan 11, 2020

Describe the problem you have/What new integration you would like

Consider adding support for the ST7920 display. It is a good alternative for SSD1325.
Please describe your use case for this integration and alternatives you've tried:

The use case is fairly simple, I'd like to be able to use ST7920 with ESP Home
Additional context

The recent version of ESP8266 library (2.5.1) supports hardware SPI (esp8266/Arduino#5948), display code already exists, so it shouldn't be hard for someone with good knowledge of this awesome project.

Useful links:
olikraus/u8g2#843

@Misiu Misiu changed the title Support ST7920 Support St7920 display Jan 11, 2020
@Misiu Misiu changed the title Support St7920 display Support ST7920 display Jan 13, 2020
@Misiu
Copy link
Author

Misiu commented Jan 14, 2020

I'm trying to add support for this. I have 128x64 ST7920 display so I'll be able to test just this one (there are other sizes).
I've created the first version by copying code for SSD1325 - Misiu/esphome@a770bb1
I need some guidance with the setup code.
I'm sure ST7920 is different from SSD1325, so that code must be changed.
https://github.com/olikraus/u8g2 has support for that display - https://github.com/olikraus/u8g2/blob/master/csrc/u8x8_d_ist7920.c

What commands I should send to correctly set up the display? Where I should search for them?
Manual (https://www.lcd-module.de/eng/pdf/zubehoer/st7920_chinese.pdf)?

@OttoWinter any hints?

@Misiu
Copy link
Author

Misiu commented Dec 8, 2020

@kbx81
Copy link
Member

kbx81 commented Dec 8, 2020

Yes, I can probably help. I'll take a look at your branch later today or tomorrow.

@moskovskiy82
Copy link

Any update on this one? Also interested in this.

@kbx81
Copy link
Member

kbx81 commented Jan 25, 2021

Sorry -- been distracted with some other project. I'll circle back before too much longer. 😇

@nicolaij
Copy link

@Misiu
Copy link
Author

Misiu commented Jan 26, 2021

there is a PR: esphome/esphome#1440
could you give this a try? I'm waiting for a new display so I can help with testing.

@Misiu
Copy link
Author

Misiu commented Feb 16, 2021

@moskovskiy82 did you try the code from the PR I mentioned?

@matphillips
Copy link

any progress on this? I have one of these displays and it would be nice to put it to use.
Thanks.

@marsjan155
Copy link

My PR was merged
esphome/esphome#1440
My LCD works with this code, maybe someone else can check and confirm

@matphillips
Copy link

Oh, great! Recently too it seems!
I'll be sure to check it when it's in release, but I'm not sure how to use the pre-release versions. If there's some instructions somewhere, I can try to test it today, but otherwise I'm find to continue to wait. Glad I didn't throw the screen away :)

@kbx81
Copy link
Member

kbx81 commented Aug 27, 2021

Docs are here: https://next.esphome.io/components/display/st7920.html

Closing the FR since the component was merged and docs added. 😄🚀

@kbx81 kbx81 closed this as completed Aug 27, 2021
@marsjan155
Copy link

@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants