I2C Interface in C+

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

Moderators: Henry, Mods

Post Reply
Don
LCD?
Posts: 3
Joined: Mon Nov 27, 2006 10:19 am
Location: Minnesota

I2C Interface in C+

Post by Don »

I have a LK202-25 display that I plan to interface on a I2C bus through a C+ application. Is anyone aware of some sample C/C+ code to demonstrate how to do this?

Thank you.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hello Don,

Here are a couple of forum posts with I2C sample code:

http://lcdforums.com/forums/viewtopic.p ... 1e1e#17470
http://lcdforums.com/forums/viewtopic.p ... 1e1e#16607

I hope these help,
Raquel Malinis
Design and Development
Matrix Orbital
Don
LCD?
Posts: 3
Joined: Mon Nov 27, 2006 10:19 am
Location: Minnesota

Post by Don »

Raquel wrote:Hello Don,

Here are a couple of forum posts with I2C sample code:

http://lcdforums.com/forums/viewtopic.p ... 1e1e#17470
http://lcdforums.com/forums/viewtopic.p ... 1e1e#16607

I hope these help,
Hi Raquel, can I step back for some "basic" instructions? I see that the default I2C slave address for the LK202-25 is 0x50. I am new to I2C protocol, but isn't there usually some type of DMA data buffers when communicating with devices? I don't see this documented.

Can you show me an example (after the I2C bus has been properly initialized) how do I write "Hello World" to the display?

Thank you.
Jon
Matrix Orbital
Matrix Orbital
Posts: 231
Joined: Mon Oct 24, 2005 10:38 am
Location: Calgary, AB, Canada
Contact:

Post by Jon »

Hi Don,

Have a look at this page:

http://www.matrixorbital.ca/appnotes/i2c/

let me know if this helps.

--
Jon
Don
LCD?
Posts: 3
Joined: Mon Nov 27, 2006 10:19 am
Location: Minnesota

Post by Don »

Hi Jon, I did take a look at this page before I made my post. I am looking for documentation beyond the LK202-25 Technical Manual, or a simple "Hello World" example to write to the display.

--
Jon[/quote]
Post Reply