Example Code for Arduino-Parallel Mode Display

Last revision 2025/12/05

This sample is working under Parallel mode.

Hardware Preparation

  • 3-wire Serial LCD Module (Arduino Compatible) (Model: DFR0091), Quantity: 1
  • Arduino Board, Quantity: 1

Wiring Diagram

wiring diagram

Mode Selection

The LCD is shipped in Parallel mode by default. The PSB_ON switch is used to set the interface mode. To switch to 3-Wire mode, Set the switch to SPI.

Sample Code

This sample is working under Parallel mode. You will need Arduino library which can be download here.

/*
LCD  Arduino
RS = 17; Analog Pin3
RW = 16; Analog Pin2
EN = 18; Analog Pin4
D0  = 8;
D1  = 9;
D2  = 10;
D3  = 11;
D4  = 4;
D5  = 5;
D6  = 6;
D7  = 7;
PIN15 PSB = 5V;
*/

#include "LCD12864R.h"
#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )

unsigned char show0[]={0xBB,0xFA,0xC6,0xF7,0xC8,0xCB,0xC3,0xCE,0xB9,0xA4,0xB3,0xA7};//DFRobot
unsigned char show1[]="www.dfrobot.com";//

void setup()
{
LCDA.Initialise(); // INIT SCREEN
delay(100);
}

void loop()
{
LCDA.CLEAR();//Clear the screen
delay(100);
LCDA.DisplaySig(0,0,0x20);//Display space
delay(100);
LCDA.DisplayString(0,1,show0,AR_SIZE(show0));//LOGO
delay(100);
LCDA.DisplayString(2,0,show1,AR_SIZE(show1));;//LOGO
while(1);
}

Was this article helpful?

TOP