-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
I have a 144 x 32 LCD driven by a ST7920 chip #2091
Comments
We also have this 144 x 32 on ST7920 via SW SPI. I've tried to patch in values but have not succeeded yet. I'm looking now on how to rebuild via codebuild, and saw that others also have a need for this new constructor. Thank you! |
Is this topic still open? Can you do the testing, if I would do the code build changes? |
Yes, we should be able to test for this as needed, thank you! |
Unfortunately I managed to use a more conventional LCD module and I don't have a good system to check this with. Sorry. |
I have created beta 2.34.20 which includes the constructor U8G2_ST7920_144X32... It would be great if someone could test this. You can download the latest U8g2 beta release from here: https://github.com/olikraus/U8g2_Arduino/archive/master.zip
PlatformIO:
|
Tested with several examples but still not working correctly. Let me know what feedback may be helpful. Compiled OK but has same behavior as 160x32 construct it seems. The 144x32 has 18 instead of 20 columns, but other than that they should respond similarly. Here is a code example (tested good): http://baxsie.com/images/forum/Arduino_ST7920_LCD/CFAG14432_SPI_Arduino.zip |
Which u8g2 code did you use for testing? How will it look on the display? Any picture of the current u8g2 output? |
Thanks for the pics and video. |
The other example which I linked above for your reference works fine, also SW SPI. Here is a video, same setup, just uploaded. other_example_working.mp4 |
So HW SPI works, but SW SPI doesn't ? |
These examples shown, including the working Crystalfontz one above, are SW SPI. No HW SPI here. Here is a section of their code, including bus timing comments: #define FAST_SPI 1 //FAST_SPI = 0: The SS pin is high for ~429uS (24-bits) //Software SPI (10-bit transfers, difficult to do using the hardware SPI) |
looks very complicated... |
There's
getDisplayHeight()
andgetDisplayWidth()
methods; are there correspondingset
methods?Or should I just choose a constructor for a differently geometry, eg. 160 x 32, and restrict my horizontal addresses to 144? Eg.
U8G2_ST7920_160X32_F_6800(rotation, d0, d1, d2, d3, d4, d5, d6, d7, enable, cs, dc [, reset]) [full framebuffer, size = 640 bytes]
?SORRY newbie error: somehow clicked POST with incomplete subject line. No way to edit subject nor delete post.
Originally posted by @tomjennings in #2084
The text was updated successfully, but these errors were encountered: