ESP32 Starter Kit
(continued from previous page)
delay(100);
}
}
7. Code Explanation
TM1650 DigitalTube(CLK,DIO); Create an example for DigitalTubeand import the pin number connecting CLK to
DIO into the code.
DigitalTube.clear(); Clear the display
DigitalTube.displayFloatNum(num); This is the digital tube display function, the maximum number is 9999.
8.5.11 Project 10Dot Matrix Display
1. Description
This module consists of a 8x8 LED dot matrix with one control pin for each row as well as each column to adjust
the brightness of LED. Connecting with Arduino board, the brightness of LED is controlled to display characters and
figures via Arduino programming. In this way, simple characters, numbers and figures are able to be displayed. It also
can be applied in game machines or screens.
2. Working Principle
MAX7219 is an IC with SPI communication and can be used to control the 8x8 dot matrix. The MAX7219 SPI
communication has integrated in our libraries and you can recall directly.
Dot Matrix Modulo Operation
Click the link for Modulo http://dotmatrixtool.com/#
Steps:
1.Click the link and set the height and width of the dot matrix. Here we set both to 8.
74 Chapter 8. Arduino Tutorial