Page 1 of 1

Posted: Mon Mar 11, 2002 1:17 pm
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

Posted: Tue Mar 12, 2002 3:30 pm
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.

Posted: Tue Mar 12, 2002 3:35 pm
by Henry
if you have some source you would share I will be more then happy to host it.