Contents
EASY plug I2C 8×8 LED Matrix
Introduction
Tek bir LED’den daha iyi ne olabilir? Çok sayıda LED! Küçük bir ekran yapmanın eğlenceli bir yolu 8×8 matris kullanmaktır. Bu matris, tüm ağır kaldırma işlemlerini sizin için yapan bir sürücü çipi kullanır: Dahili bir saati vardır, böylece ekranı çoğaltırlar. Hepsi de basit bir I2C arayüzü ile ultra parlak, tutarlı renkler, 1/16 adım ekran karartma için sabit akım sürücüleri kullanırlar.
Not: bu modülün EASY fiş kontrol kartı ile birlikte kullanılması gerekir.
Specification
- Interface: Easy plug
Besleme gerilimi: 4.5V-5.5V
Maksimum ekran: 16 * 8
Boyut: 53 * 32mm
Ağırlık: 6g
Connection Diagram
Sample Code
Libraries Download:[1]
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#ifndef _BV
#define _BV(bit) (1<<(bit))
#endif
Adafruit_LEDBackpack matrix = Adafruit_LEDBackpack();
uint8_t counter = 0;
void setup() {
Serial.begin(9600);
Serial.println("HT16K33 test");
matrix.begin(0x70); // pass in the address
}
void loop() {
// paint one LED per row. The HT16K33 internal memory looks like
// a 8x16 bit matrix (8 rows, 16 columns)
for (uint8_t i=0; i<8; i++) {
// draw a diagonal row of pixels
matrix.displaybuffer[i] = _BV((counter+i) % 16) | _BV((counter+i+8) % 16) ;
}
// write the changes we just made to the display
matrix.writeDisplay();
delay(100);
counter++;
if (counter >= 16) counter = 0;
}
Resources
PDF:
https://drive.google.com/open?id=1iW_blKJOTVfpvgzGpAjdWBostwK-Tu6Q
Code Libraries Download:
https://drive.google.com/open?id=133xsJC5jvIkjZKpvcl5yu0Wp24m4_6kM
