Example Code for Arduino-Scrolling Display

Last revision 2025/12/27

Demonstrate how to display scrolling text on the FireBeetle Covers-24×8 LED Matrix.

Hardware Preparation

Software Preparation

Other Preparation Work

You can use ”setPixel“ to set the start point, and print str with ms srolling display.

print(str,ms):  // str = string; ms = delay time

Sample Code

Initialize HT1632C display and scroll the string "DFROBOT 2017".

#include "DFRobot_HT1632C.h"

#define DATA D6
#define CS D2
#define WR D7

DFRobot_HT1632C ht1632c = DFRobot_HT1632C(DATA, WR,CS);

char str[] = " DFROBOT 2017";

void setup() {
  Serial.begin(115200);
  // put your setup code here, to run once:
  ht1632c.begin();
  ht1632c.isLedOn(true);
  ht1632c.clearScreen();
  delay(500);
}

void loop() {
  // put your main code here, to run repeatedly:
  ht1632c.print(str,50);
  //delay(100);
}

Result

The text " DFROBOT 2017" scrolls across the LED matrix.

Was this article helpful?

TOP