iMX233-OLinuXino I2C tutorial – using MOD-LCD1x9


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 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:

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:


2 Comments (+add yours?)

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

    Is it compatible with the mod-io board ?


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

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


Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: