Ks0139 keyestudio EASY plug I2C 8x8 LED Matrix: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug I2C 8x8 LED Matrix==
==EASY plug I2C 8x8 LED Matrix==
<br>[[File:ks0139-1.png|500px|frameless|thumb]]<br>
<br>[[File:Ks0139-2.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix. This matrix uses a driver chip that does all the heavy lifting for you: They have a built in clock so they multiplex the display. They use constant-current drivers for ultra-bright, consistent color, 1/16 step display dimming, all via a simple I2C interface.<br>
What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix. <br>
Note: this module needs to be used together with EASY plug control board.<br>
This module uses HT16K33 chip to drive an 8x8 dot matrix. Just need to use the I2C communication port of microcontroller to control the dot matrix, which can save more port resources of microcontroller.<br>
 
The four pin of this module is integrated into a crystal plug. All you need to do is connect the module to control board for communication using an RJ11 cable.<br>
'''Note:''' this module should be used with EASY plug control board.


<br>
==Specification==
==Specification==
* Interface: Easy plug
* Interface: Easy plug
Line 14: Line 16:
* Weight: 6g
* Weight: 6g


 
<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:ks0139-2.png|500px|frameless|thumb]]<br>
<br>[[File:图片1-0139.png|500px|frameless|thumb]]<br>
 


<br>
==Sample Code==
==Sample Code==
Libraries Download:[http://www.keyestudio.com/files/index/download/id/1507709437/]
Libraries Download:[http://www.keyestudio.com/files/index/download/id/1507709437/]

Revision as of 11:30, 28 December 2018

EASY plug I2C 8x8 LED Matrix


thumb

Introduction

What's better than a single LED? Lots of LEDs! A fun way to make a small display is to use an 8x8 matrix.
This module uses HT16K33 chip to drive an 8x8 dot matrix. Just need to use the I2C communication port of microcontroller to control the dot matrix, which can save more port resources of microcontroller.
The four pin of this module is integrated into a crystal plug. All you need to do is connect the module to control board for communication using an RJ11 cable.
Note: this module should be used with EASY plug control board.


Specification

  • Interface: Easy plug
  • Supply voltage: 4.5V-5.5V
  • Maximum display: 16*8
  • Size: 53*32mm
  • Weight: 6g


Connection Diagram


thumb


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

Get One Now

Official Website

http://www.keyestudio.com/keyestudio-easy-plug-iic-i2c-8-8-le-d-dot-matrix-display-for-arduino.html