Ds18b20+hd4478 parallel lcd+18m2+

Naweed

New Member
Hi ther sorry abt that. It works now. What do i change in the code that will show the words "The Tempertaure" on line one.
And how do i space out the second line.
it is "+ 19.75 C "
 

westaust55

Moderator
1. Change the line starting EEPROM
to have the text you want on the first line (to a max of 16 chars)

2. Edit the value of 10 in the FOR NEXT to be the same as the number of chars and spaces - 1 (-1 as first is 0)

3. For the second line do you want to space/spread out (unusual display) or Centre it on the display.
To Centre on the display, change the line
b1 = 192 : GOSUB wrins
Increase the value 192 by a count of 1 for each character space you wish to move to the right.
 

Naweed

New Member
Code:
EEPROM 0,("The Temperature") ' store the text in the EEPROM memory
[code]

this is line 1. 
I can only see "The Tempera    "
how should i fix it.

I did line 2 as well

[code]
b1 = 192+3 : gosub wrins ; move to start of second line
[code]
this works well.
 

westaust55

Moderator
Code:
EEPROM 0,("The Temperature") ' store the text in the EEPROM memory
[code]

this is line 1. 
I can only see "The Tempera    "
how should i fix it.
[/QUOTE]

As per item 2 in my description in the post #42 above:
[quote]
2. Edit the value of 10 in the FOR NEXT to be the same as the number of chars and spaces - 1 (-1 as first is 0)
[/quote]
The line in question is:
	For b0 = 0 to [COLOR="#FF0000"]10[/COLOR] ' For...next loop - Read Temperature text into LCD
10 now needs to be changed to 14
 
Top