Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Device = 18F452
Clock = 20
// some LCD options...
#option LCD_DATA = PORTD.4 // Assign the LCD connections
#option LCD_EN = PORTD.3 //
#option LCD_RS = PORTD.2 //
// import LCD library...
Include "LCD.bas"
Include "convert.bas"
Dim Variable As Word
// Start Of Program...
DelayMS(150) // Let the LCD warm up
LCD.Cls // Clear the LCD screen
LCD.WriteAt(1,1,"Hello World") // Send some text to the LCD
Variable = 0 // Clear the "Variable" register
While True
Inc(Variable) // Decrement the "Var1" register
// Convert to a string,
// and always display 5 characters
LCD.WriteAt(2,1,Convert.DecToStr(Variable,5))
DelayMS(1000) // Delay for 1 second
Wend
That command is correct. It's the command code plus the address 00h for Line 1.UTMonkey said:Without looking too closely you have the following:-
lcd_goto(0x80);
If this routine does what I think it does , then the text will be off screen anyway, try 0x00 or 0x40.
Mark
radix dec
Line1 equ 128 ;
Line2 equ 128+64 ;
Line3 equ 128+20 ;
Line4 equ 128+64+20 ;