https://github.com/codeadamca/arduino-led-matrix
A basic example of animating using an 8 x 8 LED matrix.
https://github.com/codeadamca/arduino-led-matrix
arduino cplusplus led-matrix
Last synced: about 2 months ago
JSON representation
A basic example of animating using an 8 x 8 LED matrix.
- Host: GitHub
- URL: https://github.com/codeadamca/arduino-led-matrix
- Owner: codeadamca
- Created: 2020-10-05T17:38:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T22:05:06.000Z (5 months ago)
- Last Synced: 2025-03-31T07:18:47.262Z (3 months ago)
- Topics: arduino, cplusplus, led-matrix
- Language: C++
- Homepage:
- Size: 222 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arduino and an LED Matrix
A basic example of controlling an 8 x 8 LED matrix using an Arduino.
## Arduino Code
Open up [Arduino Create](https://create.arduino.cc/editor/) and add the following code:
```csharp
#includeint DIN = 7;
int CLK = 6;
int CS = 5;
int maxInUse = 1;MaxMatrix m(DIN, CS, CLK, maxInUse);
char smile01[] = {8, 8,
B00111100,
B01000010,
B10010101,
B10100001,
B10100001,
B10010101,
B01000010,
B00111100
};
char smile02[] = {8, 8,
B00111100,
B01000010,
B10010101,
B10010001,
B10010001,
B10010101,
B01000010,
B00111100
};
char smile03[] = {8, 8,
B00111100,
B01000010,
B10100101,
B10010001,
B10010001,
B10100101,
B01000010,
B00111100
};void setup() {
m.init();
m.setIntensity(1);}
void loop() {
m.writeSprite(0, 0, smile01);
delay( 500 );
m.writeSprite(0, 0, smile02);
delay( 500 );
m.writeSprite(0, 0, smile03);
delay( 500 );}
```> [View the Arduino code on Arduino Create](https://create.arduino.cc/editor/professoradam/3858d28f-b91f-4d77-a90e-ff8519007a8a/preview)
You will need to setup the following circuit using your Arduino:

> [View the Circuit on Tinkercad](https://www.tinkercad.com/things/cirt8n99Qga)
> Full tutorial URL:
> https://codeadam.ca/learning/arduino-led-matrix.html***
## Repo Resources
- [Arduino Create](https://create.arduino.cc/editor)