LCD Command

M.Hancock

New Member
Is there an issue with trying to display 2 variables on the same line using the LCD command?

I have a student who wants to display two temperatures on the bottom line of the LCD display but although she has the two variable in square brackets, when programmed the display shows the same value for both variables even though they are different.

I've solved it by using the serout command to talk to the LCD display rather than the LCD command so it's not a big issue.
 

Technical

Technical Support
Staff member
Yes thanks for this notification, we will fix it.

If you look at the converted BASIC you will see something like this which is incorrect as both vars use the same b11,b12,b13:

bintoascii varA,b11,b12,b13
bintoascii varB,b11,b12,b13
serout 7,N2400_4,(254,128,"",254,192,"temp",b11,b12,b13," light ",b11,b12,b13)

It needs to be changed to this:

bintoascii varA,b11,b12,b13
serout 7,N2400_4,(254,128,"",254,192,"temp",b11,b12,b13)
bintoascii varB,b11,b12,b13
serout 7,N2400_4,(" light ",b11,b12,b13)
 
Top