Page 1 of 1
Basic Stamp BS2P communication using I2C with LK202-25-GW
Posted: Thu Sep 09, 2004 1:04 pm
by Rez
I have looked at the Basic Stamp BS2P and Orbital LK202 manuals and have not had any success interfacing the two devices together using I2C.
Can anyone put me out of my misery and let me know the I2C ID value for the LK202-25-GW? Also what would be the Basic Stamp code for something simple like "hello world"?
With thanks,
Rez
Problem Solved
Posted: Thu Sep 09, 2004 3:49 pm
by Rez
The problem of interfacing the Basic Stamp to the display using I2C has been solved.
The LK202-GW display operating manual refers to a default address of 50hex (number 80). This is in fact the item referred to by the Stamp Manual as the I2C ID number. For others who may also come stuck the following code worked:
I2COUT 0, 80, "H", ["ello World "]
Where 80 is the default display ID, "H" is the first letter to be displayed (otherwise 254 is used to control display parameters), followed by the rest of the text inside [" "] characters. The next line demonstrates the use of the control character 254 to position the cursor in the middle of the 2nd line after clearing the display:
I2COUT 0, 80, 254, [88] 'Clear the display
I2COUT 0, 80, 254, [71, 10, 2] 'Places cursor on column 10, row 2
Its all clear now!
Rez
Posted: Fri Sep 10, 2004 10:56 am
by Tom
Good to hear it is working out for you.
