4
Example program
You can download the example Arduino® program by going to the official Whadda github page:
https://github.com/WhaddaMakers/TM1638-Chip-key-display-module
1.
Click
the “
Download ZIP
” link in the “
Code
” menu:
2.
Unzip the downloaded file, and browse to the WPM461_example folder. Open the example
Arduino® sketch (WPM461_example.ino) located in the folder.
3.
Use the
Arduino Library manager
to install the
TM1638plus library
, by going to Sketch >
Include Library > Manage Libraries…
, typing in
TM1638plus
in the search bar and clicking
“
Install
”:
4.
Connect your Arduino compatible board, make sure the correct Board and connection port
are set in the tools menu, and hit Upload
The example program will cycle through various display sequences, which includes showing
“Velleman” and “Whadda” on the 7
-segment displays, turning on and off all of the red LEDs, showing
a number sequence on the 7-segment display, and displaying the number of milliseconds since last
reset on the display.
Check the comments in the example code for more information on what each function does.