4 DIGITS RED/GREEN COLOR 7 SEGMENT DISPLAY

Introduction

This 4-digit 7 segment display module has two colors to choose: red and green. It supports 8-level brigthness adjustment and can be drived via two normal I / O ports. Standard IIC pins, compatible with Gravity interface, free from MCU scanning .

Specification

  • Power Supply: DC 5V
  • Two Display Modes: 8 segment × 4-digit and 7 segment × 4-digit
  • Operating Current: <55mA
  • Provides 8-level Brightness Adjustment
  • High-speed 2-wire Serial Interface
  • Built-in Clock Oscillation Circuit
  • Built-in power-on Reset Circuit

Pinout

desc1

NameFunction
SDADate Line
SCLControl Line
GNDPositive
VCCNegative

Communication Description

IIC Communication

The data of microprocessor communicate with the LED driver control IC via two-line bus interface. During data input, DIN signal must keep unchanged when CLK is at high level. Only when CLK clock signal is at low level can DIN signal be changed. The condition of starting data input is that DIN changes from high to low when CLK is at high level, and its condition of ending is that DIN changes from low to high when CLK is at high level.

The operation of writing LED display data shall follow the principle of “from low bit to high bit” of display address and “from low bit to high bit” of data byte.

desc2


Slave Address

The slave address of the LED display is 0x48.

Display Register Address

REG0REG1REG2REG3
68H6AH6CH6EH

Tutorial with Arduino

Connection Diagram

desc3

Sample Code

# include "DFRobot_LedDisplayModule.h"

DFRobot_LedDisplayModule LED(Wire, 0x48);

void setup() 
{
  Serial.begin(115200);
  /*wait for the chip to be initialized completely, and then exit*/
  while(LED.begin4() != 0)
  {
    Serial.println("Initialization of the chip failed, please confirm that the chip connection is correct!");
    delay(1000);
  }

  LED.setDisplayArea4(1,2,3,4);
}

void loop() 
{
  LED.print4("H","A","L","O");
}

Result


desc4



8 DIGITS RED/GREEN 7 SEGMENT DISPLAY

Introduction

This 8-digit 7 segment display module has two colors to choose: red and green. It supports 16-level brigthness adjustment and can be drived via two normal I / O ports. The display features 4 different slave addresses, standard IIC pins, compatible with Gravity interface, and free from MCU scanning.

Specification

  • Power Supply: DC 5V
  • Operating Current: <130mA
  • IIC Bus Interface
  • Provides 16-level Brightness Adjustment
  • 16 x 8 bits RAM for storing displayed data
  • Built-in RC Oscillation
  • Four changeable Slave Addresses

Pinout

desc1

NameFunction
SDADate Line
SCLControl Line
GNDPositive
VCCNegative

Communication Description

Address Change

There are two solder pads of data bits A0 and A1 on the back of the LED display (disconnect: 0 / connect: 1). The four slave addresses can be realized by the combination of A0 and A1, shown as below.

The address format of LED controller:

MSBD6D5D4D3D2D1LSB
11100A1A0R / W

Note: D3 ~ D7 should not be changed. When writing, D0 R / W = 0, so the addresses are:

A1A0Address
000xE0
010xE2
100xE4
110xE6

IIC Communication

The data of microprocessor communicate with the LED driver control IC via two-line bus interface. During data input, DIN signal must keep unchanged when CLK is at high level. Only when CLK clock signal is at low level can DIN signal be changed. The condition of starting data input is that DIN changes from high to low when CLK is at high level, and its condition of ending is that DIN changes from low to high when CLK is at high level, which is in accordance with IIC communication protocol.

The operation of writing LED display data shall follow the principle of “from low bit to high bit” of display address and “from low bit to high bit” of data byte.


desc2


Tutorial with Arduino

Connection Diagram

desc3


Sample Code

# include "DFRobot_LED.h"

DFRobot_LED LED(0xE0); //Change it to your address

void setup()
{
  LED.begin();
}

void loop()
{
  LED.Print("NNHALONN"); //print "halo"   NOTE:'P' is capitalized
  delay(1000); 
  LED.Print("N,N,8,Dashes,L,E,D,N"); //print "8-led"  NOTE:"Dashes" is stands for - , 'N' is stands for off
  delay(1000);  
}

Result


desc4