LightByte- LED Matrix Character Generator

Writing code to generate custom characters on an LED Matrix module can often be a boring and tiring task. Here's a simple tool to simplify your work.  

LED Matrix
How to use-

  1. Create your custom character by clicking on the cells above.
  2. Click on 'Generate char code' and copy it.
  3. Paste it in your Arduino code just as in the example below.
  4. 🔥Enjoy!🔥
Here's a simple example-

1. Lets create a simple smiley, for instance-

2. Wire up your Arduino board as shown below-

Arduino- circuit diagram
3. Upload the the code below and notice where the custom character code is used.

#include <LedControl.h>
//delcaring DIN, CS and CLK pins
const int DIN = 10;
const int CS =  9;
const int CLK = 8;
// This is where you paste the copied code, look below-
byte pattern[8]={0x3C, 0x42, 0xA5, 0x81, 0xA5, 0x99, 0x42, 0x3C }; //smiley face

LedControl lc=LedControl(DIN,CLK,CS,1);

void setup(){

 lc.clearDisplay(0); // first lets clear the display
 printByte(pattern); // and now print the smiley! 

void loop()

void printByte(byte character [])
  int i = 0;

Note- If you don't have the LedControl.h library installed, you can download it from here.

And that's it! If you've done everything correctly, you should see, your LED matrix smiling at you. Sometimes it can take upto a minute to start up.

LightByte - An Open Source LED Matrix character generator by Himanshu Mittal.