Example Code for Arduino-Show hello
Last revision 2025/12/27
Learn how to use FireBeetle ESP32 and LED Matrix to display 'Hello' with Arduino IDE and sample code.
Hardware Preparation
- FireBeetle ESP32 IoT Microcontroller(SKU: DFR0478) ×1
- FireBeetle Covers-24×8 LED Matrix (Yellow)(SKU:DFR0487) ×1
- USB Cable ×1
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE.
- Download and install the FireBeetleLEDMatrix
- For Arduino IDE V1.8.19 (or earlier), install the library manually: How to Add a Library?
Other Preparation Work
NOTE: You need use D(x) to call digital I/O pins under Arduino IDE. Or that will be IO(x). CS = D2
Sample Code
Initialize HT1632C display and print "Hello".
#include "DFRobot_HT1632C.h"
#define DATA D6
#define CS D2
#define WR D7
//#define RD 7
DFRobot_HT1632C ht1632c = DFRobot_HT1632C(DATA, WR,CS);
char str[] = "Hello";
void setup() {
// put your setup code here, to run once:
ht1632c.begin();
ht1632c.isLedOn(true);
ht1632c.clearScreen();
ht1632c.setCursor(0,0);
ht1632c.print(str);
}
void loop() {
// put your main code here, to run repeatedly:
}
Result
The LED matrix displays the text "Hello".
Was this article helpful?
