Skip to content

FelixLuciano/XAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAR logo

XAR

Custom LCD Characters editor

The app

XAR app desktop

Access at GitHub.LucianoFelix.com.br/XAR

Arduino example

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

// Custom character binaries (Put your code in the brackets)
// https://github.lucianofelix.com.br/XAR/?code=0AVVE400
byte hearth[8] = {0x00, 0x0A, 0x1F, 0x1F, 0x0E, 0x04, 0x00, 0x00};

void setup() {
    // Custom character registration
    lcd.createChar(0, hearth);

    lcd.begin(16, 2);
    
    // Draws the custom character
    lcd.write(byte(0));
}

void loop() {}

Create a custom character (glyph) for use on the LCD. Up to eight characters of 5x8 pixels are supported (numbered 0 to 7). The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on the screen, write() its number.

See the LiquidCrystal reference.

Custom sizes

It is possible to create different character sizes by passing width and height arguments in the application address. See the following example:

github.lucianofelix.com.br/XAR/?width=7&height=9

Share characters

It is also possible to share a character via a URL with the character code which can be obtained by clicking the share button in the footer. See the following example:

github.lucianofelix.com.br/XAR/?code=0AVVE400

License

This project is MIT licensed.