Just curious where RETURN right before LCDWRITE subroutine returns to?
Don't have one to test.
Robert
Just curious where RETURN right before LCDWRITE subroutine returns to?
Don't have one to test.
Robert
From what I have read the code is correct in that it will print to the LCD on a one shot basis then return to nowhere.
Return to nowhere?
Does anyone have one to test?
Having used serial LCDs which were easy to use by sending ascii commands and data using serout2 these look very difficult. I just wonder why make something difficult when there is an easier way.
I have done more research and I believe that all Arduino I2C LCDs are not the same. I guess it depends on the manufacturers implementation and the chips used on the backpack.
Steve Earl www.datageo.co.uk
So I'm not missing a label then, the code just isn't terminated "properly".
I kept going through it thinking I was missing something obvious.
Robert
Not that I can see but then I always wonder if I am missing something whether it is obvious or not.
I have been trying to work out what the $44 do because they are not printed on the screen.Code:LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $48 GOSUB LCDWRITE LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $45 GOSUB LCDWRITE LCD_CMD = $44 GOSUB LCDWRITE LCD_CMD = $4C GOSUB LCDWRITE
Steve Earl www.datageo.co.uk
Can't find info on $44, and can't see what's in this zip on my phone:
https://bitbucket.org/fmalpartida/ne...stal/downloads
I'd be curious to see all the stuff in version 1.2.1.
Robert
Compare this code with Darrel's the one obvious issue is that the LCD is in 4 bit mode which requires the upper nibble and lower nibble to be sent separately. One other concern is that of setting the RS bit for data mode which is done once after initialisation. Does this not need doing every time a data nibble is sent?
Steve Earl www.datageo.co.uk
Is it pure coincidence that all the upper nibbles are $4?
Steve Earl www.datageo.co.uk
Bookmarks