iMX233-OLinuXino I2C tutorial – using MOD-LCD1x9


Image

MOD-LCD1x9 is UEXT module which could connect to any of our boards with UEXT connector like Arduino, Maple, Pinguino, Energia and of course OLinuXino.

It’s interfaced by I2C and with this code from GitHub https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/iMX233/I2C/MOD-LCD1x9 you can drive it via iMX233-OLinuXino.

To work with MOD-LCD1x9 you should make sure your iMX233-OLinuXino is setup for hardware I2C as explained in my previous tutorial: https://olimex.wordpress.com/2012/09/25/imx233-olinuxino-i2c-tutorial-using-wii-nunchuk/

Then you need to download the code and compile it:

$ cc main.c -o mod-lcd1x9

then make the compiled code executable:

$ chmod +x mod-lcd1x9

then if you execute this command you will see all segments on as on the picture above

$ ./mod-lcd1x9 -init

this command is necessary to be executed first to may initialize LCD registers properly, then you can display any text on the lcd with the command ./mod-lcd1x9 “text”, for instance:

$ ./mod-lcd1x9 hello

will display on the LCD:

Image

2 Comments (+add yours?)

  1. franck
    Jan 03, 2013 @ 02:07:22

    Hi,
    Is it compatible with the mod-io board ?
    https://www.olimex.com/Products/Modules/IO/MOD-IO/
    Thanks,
    Franck

    Reply

  2. flipflops
    Feb 11, 2013 @ 06:58:01

    Are there functions to write long text and have it scroll across the lcd panel?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: