LCD with two alternating sets of display lines?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
LCD with two alternating sets of display lines?
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?
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?
-
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
Re: LCD with two alternating sets of display lines?
I think this function is implemented in" framed LCD plugin"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?
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
-
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
Re: LCD with two alternating sets of display lines?
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.
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
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
Re: LCD with two alternating sets of display lines?
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.toffel969 wrote: ↑30 Aug 2017, 08:02I think this function is implemented in" framed LCD plugin"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?
Edit: it is the oled plugin not lcd.
Yo should be able to achieve the functionality with rules.
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.
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
Re: LCD with two alternating sets of display lines?
Understand. But that would put the control in Domoticz (in my case), and I would prefer an ESP that is not depending on that.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.
I'll go for the "rules" solution and see where that brings me.
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
Re: LCD with two alternating sets of display lines?
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?
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?
-
- Normal user
- Posts: 469
- Joined: 03 Jan 2017, 10:58
- Location: Germany
Re: LCD with two alternating sets of display lines?
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
-
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
Re: LCD with two alternating sets of display lines?
As far as i can see from the code there are no further commands.
Regards
Shardan
Shardan
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
Re: LCD with two alternating sets of display lines?
-
- Normal user
- Posts: 516
- Joined: 08 Feb 2016, 11:22
Re: LCD with two alternating sets of display lines?
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.
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 15 guests