, ,

Matriz I2C 8×8 LED HT16K33 para Arduino Keyestudio

REF: KS0064


Melhor do que ter um único LED é ter muitos LEDs! Estas mochilas de matriz de 1,2 “vêm com três jumpers de seleção de endereço para que você possa conectar até oito 1,2” 8×8 juntos (ou uma combinação, como quatro 1,2 “8×8 e quatro 7 segmentos, etc.).

3,90 IVA INCL.

Matriz I2C 8×8 LED HT16K33 para Arduino Keyestudio

Input volt: 5V
Rated input frequency: 400KHZ
input power: 2.5W
Input curr: 500mA

REF: KS0064 Categorias: , , Etiquetas: , , , ,
Marca

#include 
#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;  
}

 

Também pode gostar…