LK204-25 I2C and BasicStamp

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

Moderators: Henry, Mods

Post Reply
m5art
LCD?
Posts: 2
Joined: Sun Mar 10, 2002 4:00 pm

Post by m5art »

I am trying to use I2C communication with BS2p. The structure of the Basic Stamp command to send data on to I2C node is:
I2COUT Pin, SlaveID, Address, [data]
where:
Pin - is i/o pin 1 or 8
SlaveId - is ID of the I2C chip (our display - in case of LK204-25 should be 0x5C according to manual)
Address - is 0-255 indicating the desired address within the chip to send data to
[data] - is our data of course
What I cannot figure out is what should I use for Address if I want to send simple string of text to display???
Any one tried this yet??
Thanks
Art

m5art
LCD?
Posts: 2
Joined: Sun Mar 10, 2002 4:00 pm

Post by m5art »

For anyone who is interested I've got it working: as an Address I tried to use dummy bit say 0x00 or NULL in ASCII and then backspace, but it didn't work properly, because NULL was showing some artifacts on a display. So I used 0x02 instead:
I2COUT 0, $5C, $2 [$08, "Hello World"]

Note:I2COUT/I2CIN commands only exist in BasicStamp 2p.
Art

Henry
OMNIPRESENT
OMNIPRESENT
Posts: 3002
Joined: Tue Aug 14, 2001 6:00 pm
Contact:

Post by Henry »

if you have some source you would share I will be more then happy to host it.
Henry J.
President
Matrix Orbital

Post Reply