Introduction: MULTIPLE MONOCHOME LCD INTERFACING WITH CLOUDX

Have you ever imagine as a diy'er to interface more than 1 LM0XXX LCD (16x1, 16x2, 16x4, etc), or maybe some other monochrome LCD, then today is your lucky day because CloudX has it !!! I LOVE THIS.

Step 1:

The library is similar to that of the normal CloudX Lcd library. only a few changes to every function parameter, that is,

1. lcd settings is the same when calling the function, but it is recommended that you assign the enable pin to an integer variable to specify the lcd you want to communicate with.

example:

int lcd1 = 2;

lcdSetting(1,lcd1,5,6,7,8);

2. to write to that LCD, use:

lcdWriteText(lcd1, 1,1," TEXT GOES HERE ");

Note: notice the parameter call of lcd1 before the row and column of the lcd before the character to be written.

DO SO FOR OTHER FUNCTION CALL RELATED TO THIS LCD LIBRARY

Step 2:

/*  * File:   newmain.c
 * Author: OGBOYE GODWIN
 *
 * Created on July 6, 2018, 10:15 AM
 */
#include <CloudX/M633.h>
#include <CloudX/LcdAdvance.h>

int lcd1 = 2;
int lcd2 = 3; int lcd3 = 4; int i;

setup(){ //setup here lcdSetting(1,lcd1,5,6,7,8); lcdSetting(1,lcd2,5,6,7,8); lcdSetting(1,lcd3,5,6,7,8); lcdCmd(lcd1,clear);// lcdCmd(lcd2,clear); lcdCmd(lcd3,clear); lcdCmd(lcd1,cursorOff);// lcdCmd(lcd2,cursorOn);// lcdCmd(lcd3,cursorOff);// delayms(1000);

// LCD3 IS 16X1 lcdWriteText(lcd2, 1,1," THIS IS MULTI-LCD INTERFACE. ");

// LCD3 IS 16X2 lcdWriteText(lcd3, 1,2," ONLY ON CLOUDX"); lcdWriteText(lcd3, 2,1,"BY OGBOYE GODWIN");

// LCD1 IS 16X4 lcdWriteText(lcd1, 1,1,"LCD 16X4. TRY"); lcdWriteText(lcd1, 2,1,"THIS AT HOME!!!"); delayms(4000);

loop(){ for(i=0;i<=16; i++){ lcdCmd(lcd1, shiftDisplayLeft); lcdCmd(lcd2,shiftDisplayLeft); delayms(350); }

for(i=0;i<=16; i++){ lcdCmd(lcd1, shiftDisplayRight); lcdCmd(lcd2,shiftDisplayRight); delayms(350); } } }