karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
516 stars 155 forks source link

Screensaver to prevent OLED burnout. #169

Closed evilslon closed 3 years ago

evilslon commented 4 years ago

Hello! I use a monochrome OLED display in my KaRadio32, but there's one problem - the display burns out when the device is in sleep mode (when it shows the clock). Could you make something similar to a screensaver (for example, for clock numbers changing the position on the screen) to prevent pixels from burning out? That would be great!

Thank you for your excellent work!

IMG_8575 IMG_8577

hjgode commented 3 years ago

I also need some help to make oled display either dim or mover around, when stopped playing. Some kind of screen off or screen saver would be good.

hjgode commented 3 years ago

In the meantime I will use the command sys.lcdstop("5") to shutdown the OLED after 5 seconds when I stopped playing. There is also an option to make the display go off in play/normal mode: sys.lcdout("10") will switch off the display in play mode after 10 seconds of being idle.

Oled displays support a contrast settings, that may be usefull to 'dim' the display after some idle time. But this would require some extra coding...