Here is an include file from the forum that has been modified/updated to work with the Olimex PIC_LCD3310 PIC18F67J50 board. Also included an example.
Here is the LCD_3310ex.txt:
Code:
DEFINE OSC 48
include "modedefs.bas"
include "LCD_3310.pbp"
start:
pause 100
gosub Lcd_Init 'Initialize LCD
gosub Lcd_Clear 'Clear contents of screen
pause 50
PosX = 30 'position 30 of 84 in the x direction
PosY = 1 'row 1 (of 0-5)
gosub Lcd_GotoXY
Lcd_Data = "H"
gosub Lcd_SendChar
Lcd_Data = "E"
gosub Lcd_SendChar
Lcd_Data = "L"
gosub Lcd_SendChar
Lcd_Data = "L"
gosub Lcd_SendChar
Lcd_Data = "O"
gosub Lcd_SendChar
PosX = 30 'position 30 of 84 in the x direction
PosY = 4 'row 4 (of 0 to 5)
gosub Lcd_GotoXY
Lcd_Data = "W"
gosub Lcd_SendChar
Lcd_Data = "O"
gosub Lcd_SendChar
Lcd_Data = "R"
gosub Lcd_SendChar
Lcd_Data = "L"
gosub Lcd_SendChar
Lcd_Data = "D"
gosub Lcd_SendChar
Lcd_Data = "!"
gosub Lcd_SendChar
pause 5000
end
Bookmarks