Setting OLED Contrast

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Wiki
Normal user
Posts: 413
Joined: 23 Apr 2018, 17:55
Location: Germany

Setting OLED Contrast

#1 Post by Wiki » 18 Oct 2018, 17:42

Hi,

I am looking for a possibilty to set the contrast of the display depending on an event. I would prefer to put it into rules to give domoticz the ability to adjust the contrast depending on sunrise/sunset.

Any ideas?

Code: Select all

pi@raspberrypi:~ $ man woman
No manual entry for woman
pi@raspberrypi:~ $

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Setting OLED Contrast

#2 Post by TD-er » 20 Oct 2018, 20:53

At this moment the Framed OLED plugin is the only one able to set the contrast.
The command is "OLEDFRAMEDCMD" and the options are:
- off
- on
- low
- med
- high

Commands can be sent from the rules.

Wiki
Normal user
Posts: 413
Joined: 23 Apr 2018, 17:55
Location: Germany

Re: Setting OLED Contrast

#3 Post by Wiki » 20 Oct 2018, 21:06

Thanks a lot, that is exactly what I was looking for. Done.

Code: Select all

pi@raspberrypi:~ $ man woman
No manual entry for woman
pi@raspberrypi:~ $

smhex
New user
Posts: 5
Joined: 18 Feb 2020, 09:12

Re: Setting OLED Contrast

#4 Post by smhex » 18 Feb 2020, 21:28

I was just trying this with the current build on my WeMos mini. However, every http call resulted in Unknown command. The Oled itself is working as expected. I would like to use the framed device for better readability but need to switch it off...

Is there a different way to test it?

Thanks

Patou
Normal user
Posts: 106
Joined: 21 May 2018, 10:33

Re: Setting OLED Contrast

#5 Post by Patou » 19 Feb 2020, 09:50

Hello,
Just a mistake in the command name ....
it should be : OledFRAMEDCmd,Display,.... on/off/low...
Patou

smhex
New user
Posts: 5
Joined: 18 Feb 2020, 09:12

Re: Setting OLED Contrast

#6 Post by smhex » 20 Feb 2020, 19:09

Perfect, couldn't find that information in the wiki. Works as expected!

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Setting OLED Contrast

#7 Post by TD-er » 20 Feb 2020, 21:09

smhex wrote: 20 Feb 2020, 19:09 Perfect, couldn't find that information in the wiki. Works as expected!
Use the source, Luke! ;)

smhex
New user
Posts: 5
Joined: 18 Feb 2020, 09:12

Re: Setting OLED Contrast

#8 Post by smhex » 20 Feb 2020, 22:11

Use the source, Luke! ;)
Already on my todo list :D

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests