-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
more Display Chipsets - better OLED Driver #232
Comments
Cool! I think that this module is indeed better. It supports more devices and I do not to have all kind of different modules. But it will be low on my priority list. As I do not use it myself actively. |
No Problem, I have done it work for me, so I can wait. i have to look, if I can update to new version. |
Hi, I have created new code for those Oleds. Yours should now also be supported. No colors at this time. The code is in the Rerun the installer before restarting TerrariumPI. It needs new python and os packages. |
Great job👍 |
Euh, it should show at least CPU stats after max 1 minute. Are there any errors in your screen session? And did you enable the title setting for the display? |
I have also expected this CPU and other stuff. I have deactivated all messages for now, so only the time, cpu, ram, temperature, and humidity should be there. Title is also enabled. |
My code is indeed changed a lot. This is done to make it a bit easier to understand. And there is now only vertical scrolling. But you have selected your SH1106 Oled hardware in my software? And then just to be sure, save the notification settings so the new settings will be saved. The display part of the file
And then restart once more. Then we now for sure the right configuration is used. |
|
Remove the resolution line and restart. The resolution should not be there.... If you remove it, and restart, it should work better. In the mean time, I did found some small issues. So also a git pull will fix some small issues. |
Hmm, not sure if the resolution part is really the problem. But the new code will output some raw debug in the screen session. Does it show there some CPU stats etc..? |
yes, now it shows everything, |
perfect work, thank you. |
The contents for the display are only/mostly warnings and errors. So it can for now only show messages that are available in the notification settings. So, not sensor temperatures for example. By hovering over the images on the right side next to the messages, you can specify the way of notification (click to light it up). The icons should match the notification part like display or twitter. The idea was/is that the notifications will alert you when there are errors. And a display is one way to do it. But the display is not added with the option to make some kind of overview screen. The debug that is now added will be removed. In order to see the status, you should really use the web interface. In order to test the display and to show something at least, I added code that will update the display every 30 seconds with the latest CPU stats and sensor averages. This is not editable. |
This test-screen is much more usable than you expected ;) thank you for now for adding this screen. |
Ah yes, I see. But that is also my problem with creating some kind of display editor. The screen is small and I need to make it a general system. That is a bit hard. So, for you, I would suggest buy a second pi and add a screen to that. And use own simple code that read out the TerrariumPI with JSON. That way you have all the freedom to create your own screens. As a somewhat compromise I do show the average sensor values on the display. That is enough for me vs the amount of work that has to be done. Then I have a question for you. Could you look at: #210 |
I will post some pics next month. The geckos are in winter rest at cellar, so the terrarium is very empty, no rocks, no wetbox.., no geckos 😅 |
Ok, then I think we close this issue? And I will wait for the photos |
Hey @theyosh,
I have bought a OLED-display. Of course, it was not supported by the driver, you are using :(
Your code only allows to use SSD1306 chipset, but there are much more Displays, that do not work with Adafruit_SSD1306 driver. I have the newer and cheaper SSH1106.
So I found a driver, that let us use much more chipsets and resolutions and even color-displays:
https://luma-oled.readthedocs.io/en/latest/intro.html
There are some incompatible parts in your code like self.__screen.begin() , but easy to fix. ( I was able to fix by try and error! :D )
I do not know, how it is about Copyrights, so please have a look at your own.
BTW, where I can change, what the display will show me? so, where is rawdata generated?
I will try to change it by my own, trying to get more usefull stuff set to display.
thank you
Merry christmas!
The text was updated successfully, but these errors were encountered: