I am new to i2c and have finally got two pic's communicating (one master the other slave). Eventually I want to create an i2c lcd interface.
What I would like to know is receive strings from the master. I can receive bytes but don't know how or if its possible to receive strings.
James
Ttelmah Guest
Posted: Fri Jul 31, 2009 7:20 am
Strings, _are_ bytes.....
All a 'string' is in C, is a sequence of ASCII bytes, terminated by a '0'. Hence it is commonly referred to as a 'null terminated byte array'.
Such a sequence, can be sent over I2C, just as easily as any other byte sequence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum