LCD with two alternating sets of display lines?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

LCD with two alternating sets of display lines?

#1 Post by manjh » 29 Aug 2017, 23:57

I am using an LCD screen with four display lines, and have run out of room.
It would be nice to have two separate sets of lines, which display alternating.
So first display the 1st set of lines, then after (say) 30 seconds display the second, etcetera.

I don't think this is a function at this moment, but would it be very difficult to do this?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: LCD with two alternating sets of display lines?

#2 Post by toffel969 » 30 Aug 2017, 08:02

manjh wrote: 29 Aug 2017, 23:57 I am using an LCD screen with four display lines, and have run out of room.
It would be nice to have two separate sets of lines, which display alternating.
So first display the 1st set of lines, then after (say) 30 seconds display the second, etcetera.

I don't think this is a function at this moment, but would it be very difficult to do this?
I think this function is implemented in" framed LCD plugin"

Edit: it is the oled plugin not lcd.

Yo should be able to achieve the functionality with rules.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: LCD with two alternating sets of display lines?

#3 Post by toffel969 » 30 Aug 2017, 08:21

Yes it's possible. The commands shown under http control are also available in rules:

https://www.letscontrolit.com/wiki/index.php/LCDDisplay

Just use the lcd command in rules in combination with 2 timers.
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: LCD with two alternating sets of display lines?

#4 Post by manjh » 30 Aug 2017, 11:34

toffel969 wrote: 30 Aug 2017, 08:02
manjh wrote: 29 Aug 2017, 23:57 I am using an LCD screen with four display lines, and have run out of room.
It would be nice to have two separate sets of lines, which display alternating.
So first display the 1st set of lines, then after (say) 30 seconds display the second, etcetera.

I don't think this is a function at this moment, but would it be very difficult to do this?
I think this function is implemented in" framed LCD plugin"

Edit: it is the oled plugin not lcd.

Yo should be able to achieve the functionality with rules.
Ah, good idea! At system boot start timer1 with 30 secs, timer2 with 60. Then for each timer display the appropriate lines and restart the timer for 60 secs.
I think this will work, will play around with it a bit.

edit: tried it, and this works just great!
Last edited by manjh on 30 Aug 2017, 12:06, edited 1 time in total.

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: LCD with two alternating sets of display lines?

#5 Post by manjh » 30 Aug 2017, 11:38

toffel969 wrote: 30 Aug 2017, 08:21 Yes it's possible. The commands shown under http control are also available in rules:

https://www.letscontrolit.com/wiki/index.php/LCDDisplay

Just use the lcd command in rules in combination with 2 timers.
Understand. But that would put the control in Domoticz (in my case), and I would prefer an ESP that is not depending on that.
I'll go for the "rules" solution and see where that brings me.

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: LCD with two alternating sets of display lines?

#6 Post by manjh » 30 Aug 2017, 12:20

One last question, is there a list of commands?
In the ESPEasy command reference I find a link to the LCD Display page, and there I can see four:
simple write, clear, on and off.
Is there more? Such as line-clear, blink on/off, cursor position?

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: LCD with two alternating sets of display lines?

#7 Post by toffel969 » 30 Aug 2017, 15:54

manjh wrote: 30 Aug 2017, 12:20 One last question, is there a list of commands?
In the ESPEasy command reference I find a link to the LCD Display page, and there I can see four:
simple write, clear, on and off.
Is there more? Such as line-clear, blink on/off, cursor position?
Not that I'm aware of. What do you mean by dependant o domoticz, it's all in in rules
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: LCD with two alternating sets of display lines?

#8 Post by Shardan » 30 Aug 2017, 19:34

As far as i can see from the code there are no further commands.
Regards
Shardan

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: LCD with two alternating sets of display lines?

#9 Post by manjh » 31 Aug 2017, 09:55

toffel969 wrote: 30 Aug 2017, 15:54
manjh wrote: 30 Aug 2017, 12:20 One last question, is there a list of commands?
In the ESPEasy command reference I find a link to the LCD Display page, and there I can see four:
simple write, clear, on and off.
Is there more? Such as line-clear, blink on/off, cursor position?
Not that I'm aware of. What do you mean by dependant o domoticz, it's all in in rules
Not with the http control commands, right?
Anyway, I tried the rules solution and that works very nice.

manjh
Normal user
Posts: 516
Joined: 08 Feb 2016, 11:22

Re: LCD with two alternating sets of display lines?

#10 Post by manjh » 31 Aug 2017, 09:57

Shardan wrote: 30 Aug 2017, 19:34 As far as i can see from the code there are no further commands.
Pity. Clearlline would have been useful, especially when I use text of varying length. If a displayed lline is shorter than the previous, it will leave some of the old text visible. The only options now are to either clear the whole screen, or display exactly the max number of characters of a line.

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests