-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
PCD8544 display not working and wrong implementation of display contrast #674
Comments
Display should be fixed in 2e33f5c |
Nokia don't support contrast change, if contrast is setted, display stays off. In this case, I implemented in my fork, if contrast is 255, the contrast will not setted. |
According to the data sheet it does support setting the contrast. Even the library supports it: https://github.com/olikraus/u8g2/blob/4d9f63394f070a9f6e079ae8bccb97bad5967481/csrc/u8x8_d_pcd8544_84x48.c#L124 With my patch above the contrast value from 0...100 is spread from 0...255... But if it's still not working there is maybe a mistake in the display library. will doublecheck this later. |
I have testet it, without backlights, maybe with contrast you can adjust the blacklights? |
Could someone please be so kind and describe the connection of this display, including pin mapping, under doc2/Display.md and docs/DeviceProfiles? |
I tried firmware version d508b41.
Display connections
The display shows some text ( After uploading |
Today I'm back home and checked your settings - yes it's working, but I only see "OpenDTU!" msg with good contrast at 50%. |
I´m sorry, I only prepared my OpenDTU but I don´t have a Hoymiles device to test. |
You don't need an Hoymiles. The display must change to "offline" inside the loop, but it stays "frozen" with the "OpenDTU!" text from setStartupDisplay(). The loop is running fine and an I2C display works. But the PCD8544 in dead inside the loop. I wrote some text to all lines inside setStartupDisplay() > works! When I change the displays constructor to use software SPI: |
v24.4.6 seems to work without any modification. The date output in the last line doesn´t look very nice. It would be better to have hours and minutes instead of the day ( |
Please look at the implementation of the displays at the ahoy Projekt. This steps are already done there. Would be nice, if OpenDTU will get the same state with the displays like Ahoy. Code is there, need smaller adjustments. If the implementation is needed, I can send a new PR. |
Here it's already running fine. I'm not very familar using GIT, so I add the files here. Use it as you like. The reset pin is not needed - so I used ths for the DC pin. platformio_override.ini:
|
look here: |
What happened?
I tried to use a PCD8544 display but it remains blank.
After testing #650 and a lot of investigation the display shows some data.
But I had to modify the code:
Display.contrast = 255
To Reproduce Bug
Connections:
Expected Behavior
The range of display contrast in the webinterface is 0 ... 100%.
This value is used without any modification to set display contrast in the u8g2 library.
But I found in the u8g2 specification:
value
: Contrast or brightness from 0 to 255Install Method
Self-Compiled
What git-hash/version of OpenDTU?
055eb3a
Relevant log/trace output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: