Proton Development Suite

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
jamachine
LCD?
Posts: 2
Joined: Fri Jan 28, 2005 8:13 am

Proton Development Suite

Post by jamachine »

Hello,
Having a problem getting this to do what I wantI have a lcd2041.Looked through the pdf then looked at the forum for the basic stamp ,they use alot of the same commands but in this case it does not seem to work.Here is some of waht I had tried:

Device 12f629
set_osccal 'Set the osccal value from the last location in program memory
config intrc_osc_noclkout, WDT_Off, PWRTE_ON, CP_OFF, MCLRE_OFF,CPD_OFF,BODEN_ON
'-------------------------------------------------------------------------------


dim led as gpio.4
ALL_DIGITAL = TRUE
DECLARE SERIAL_BAUD 9600
DECLARE RSOUT_PIN gpio.5
DECLARE RSOUT_PACE 100

delayms 1000
start:

RSOUT AT 1,1, "blah blahY"
delayms 2000
RSOUT AT 1,1, $FE ,$88
delayms 1000
high led
delayms 5000
low led
goto start

I cannot get it to print to another line until it fills line one either
If you would like to try it get the demo below
http://www.picbasic.org/wheretobuy.php?id=protonds
Any Ideas

Thanks Stan
jamachine
LCD?
Posts: 2
Joined: Fri Jan 28, 2005 8:13 am

Why

Post by jamachine »

I found a post thst shows how to to do it in Ic2 ,but it works in serial too, now my question is why, here is the line my question is on, one command, the first one it will not work without it $45:


rsout at $45,$FE,$FE,$58

ANY ANSWERS,
Stan
\
Tom
Matrix Orbital
Matrix Orbital
Posts: 1030
Joined: Mon Jul 19, 2004 4:43 pm
Location: Calgary
Contact:

Post by Tom »



I found a post thst shows how to to do it in Ic2 ,but it works in serial too, now my question is why, here is the line my question is on, one command, the first one it will not work without it $45:


rsout at $45,$FE,$FE,$58
The 0x45 is the I2C address of the display.

For more information on interfacing via I2C with a MO display, please refer to http://www.lcdforums.com/forums/viewtopic.php?t=910 . That is a guide for communication via I2C.

Best Regards, :D
Post Reply