MAX7219 Dot Matrix 4 in One Module (MAX7219) [D080]
https://www.youtube.com/watch?v=HQFkxxBsr1Y
* Specs
Using a LED Dot Matrix in your next project can be a way to incorporate some cool little animations.
By using these 8X8 matrix modules you can create your own.
Since these modules use the MAX7219 LED driver chip, we will be able to turn on and off the 64 LEDs of each modules, using only 3 pins on our Arduino.
* Content
- Connect
VCC - 5V
GND - GND
DIN - D12
CS - D10
CLK - D11
- Library : https://brainy-bits.com/wp-content/uploads/2015/01/LedControl.zip
- Sketch : https://brainy-bits.com/wp-content/uploads/2015/01/MAX7219_Tutorial.zip
- Key Code
#include "LedControl.h"
LedControl lc=LedControl(12,11,10,2); // Pins: DIN,CLK,CS, # of Display connected
unsigned long delayTime=500;
// Put values in arrays
byte invader1a[] =
{
B00011000, // First frame of invader #1
B00111100,
B01111110,
B11011011,
B11111111,
B00100100,
B01011010,
B10100101
};
void setup()
{
lc.shutdown(0,false); // Wake up displays
lc.shutdown(1,false);
lc.setIntensity(0,5); // Set intensity levels
lc.setIntensity(1,5);
lc.clearDisplay(0); // Clear Displays
lc.clearDisplay(1);
}
'3) Actuator > LED_Dot_Matrix' 카테고리의 다른 글
MAX7219 Dot Matrix Module (MAX7219) [D057] (0) | 2016.09.21 |
---|---|
8x8 LED dot Matrix (1588AS) [D015] (0) | 2016.09.21 |