Modul Panel Dot Matrix 32×8 MAX7219 4 in 1 LED Display
Rp41,500
Alasan berbelanja di Saudagar Shop
- Pesanan sebelum jam 2 siang akan diproses dihari yang sama
- Garansi uang kembali
- Bisa COD - Bayar setelah barang sampai
Description
Description
Weight | 350 g |
---|---|
SKU | 68d84da96e65 |
Category | Komponen Electronic |
Description:
1 single module can drive an 8 * 8 dot matrix common cathode
2 module Operating voltage: 5V
3 Module dimensions: length 12.8 cm X 3.2 cm wide X 1.3 cm high
4 holes with screws, diameter 3mm
5 modules with input and output interfaces, support for cascading multiple modules.
Arduino sketch example:
#include SPI.h
#include Adafruit_GFX.h
#include Max72xxPanel.h
int pinCS = 10;
int numberOfHorizontalDisplays = 1;
int numberOfVerticalDisplays = 4;
Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
String tape = “Ayo belajar Arduino bersama DA Electronics”;
int wait = 50; // In milliseconds
int spacer = 1;
int width = 5 + spacer; // The font width is 5 pixels
void setup() {
matrix.setIntensity(7); // Use a value between 0 and 15 for brightness
// Adjust to your own needs
matrix.setRotation(matrix.getRotation() + 1 ); // The first display is position upside down
// matrix.setRotation(1, 1); // The first display is position upside down
}
void loop() {
for ( int i = 0 ; i < width * tape.length() + matrix.width() - 1 - spacer; i++ ) {
matrix.fillScreen(LOW);
int letter = i / width;
int x = (matrix.width() – 1) – i % width;
int y = (matrix.height() – 8) / 2; // center the text vertically
while ( x + width – spacer >= 0 && letter >= 0 ) {
if ( letter < tape.length() ) {
matrix.drawChar(x, y, tape[letter], HIGH, LOW, 1);
}
letter–;
x -= width;
}
matrix.write(); // Send bitmap to display
delay(wait);
}
}