Product description :
This dot matrix module can be controlled by Arduino, pcDuino and other microcontrollers designed to develop different and fun applications.
A dot matrix with common cathode is driven with the MAX7219 integration with serial interface on the board.
Product features :
- Microcontroller controlled module driven by MAX7219
- 3mm Led Dimensions
- 8x8 common cathode red dot matrix
- Fixing holes in 4 corners for easy mounting
- Working Voltage: 4.7-5.3V
- Working Current: 320mA
- Dimensions: 50x32x15mm
Product Content:
- 8x8 Red Dot Matrix Module
- 5 Pin Female-Female Jumper Cable
Arduino sketch:
Напишем программу, которая будет по-очереди выводить на матрицу все буквы фразы: «HELLO WORLD!».
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Max72xxPanel.h>
int pinCS = 9;
int numberOfHorizontalDisplays = 1;
int numberOfVerticalDisplays = 1;
Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
String tape = "HELLO WORLD!";
int wait = 20;
void setup() {
matrix.setIntensity(7); // яркость от 0 до 15
}
void loop() {
for ( int i = 0 ; i < tape.length(); i++ ) {
matrix.fillScreen(LOW);
matrix.drawChar(0, 0, tape[i], HIGH, LOW, 1);
matrix.write();
}
delay(wait);
}
https://robotclass.ru/