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

Pinout

PinOut

Name Function
SDA Date Line
SCL Control Line
GND Positive
VCC Negative

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.

Data Transmission Format

Slave Address

The slave address of the LED display is 0x48.

Display Register Address

REG0 REG1 REG2 REG3
68H 6AH 6CH 6EH

Tutorial with Arduino

Connection Diagram

Connection

Sample Code

Click to download Library File and Example. How to install a library?

/*!
 * @file led4Print.ino
 *
 * @copyright   Copyright (c) 2010 DFRobot Co.Ltd (https://www.dfrobot.com)
 * @licence     The MIT License (MIT)
 * @author [Actor](liang.li@dfrobot.com)
 * @version  V1.0
 * @eGPAte  2019-12-10
 * @get from https://www.dfrobot.com
 * @url https://github.com/DFRobot/DFRobot_LedDisplayModule
 */
# 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

Display Result

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum

More Documents

DFshopping_car1.png Get 4-Digital LED Segment Display Module from DFRobot Store or DFRobot Distributor.

Turn to the Top