The SparkFun LED Array - 8x7 is a versatile and vibrant display module featuring 56 individually addressable RGB LEDs. This array allows users to create a wide range of colorful visual effects and patterns. It operates using the I2C communication protocol, making it simple to interface with microcontrollers such as the Arduino UNO. Common applications include custom indicators, gaming displays, message boards, and educational projects that require visual feedback.
Pin Name | Description |
---|---|
VCC | Power supply (3.3V to 5V) |
GND | Ground |
SDA | I2C Data line |
SCL | I2C Clock line |
INT | Interrupt (optional use) |
To use the SparkFun LED Array with an Arduino UNO, follow these steps:
Connect the LED Array to the Arduino:
Install the Required Library:
Programming the Arduino:
#include <SparkFun_LED_Array.h> // Include the SparkFun LED Array library
SparkFun_LED_Array ledArray; // Create an LED Array object
void setup() {
Wire.begin(); // Initialize I2C communication
ledArray.begin(); // Initialize the LED Array
}
void loop() {
// Example: Set the first LED to red
ledArray.setLEDColor(0, 255, 0, 0); // Set LED at index 0 to red
ledArray.updateDisplay(); // Update the display to show changes
delay(500); // Wait for 500 milliseconds
// Turn off the first LED
ledArray.setLEDColor(0, 0, 0, 0); // Set LED at index 0 to off
ledArray.updateDisplay(); // Update the display to show changes
delay(500); // Wait for 500 milliseconds
}
updateDisplay()
after setting the desired LED colors.updateDisplay()
to ensure smooth transitions.LEDs Not Lighting Up:
Flickering LEDs:
updateDisplay()
is called in quick succession.Incorrect Colors Displayed:
Q: Can I change the I2C address of the LED array?
Q: How many LED arrays can I chain together?
Q: Is it possible to use this LED array with other microcontrollers?
For further assistance, consult the SparkFun LED Array - 8x7 forums and community resources.