Utility to display and build custom LCD character

I'm trying to find a utility that will allow a custom LCD character for a 16x2 LCD to be defined, but also, the reverse, to be given the definition, and graphically display the result.formed by the following definition, and display it.

For example, here is a definition of a custom character.
I know uint8_t is the same as byte.
It seems only 5bits are being defined per row, and three are missing?
Any help appreciated.

uint8_t custom0[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b10000,
0b00000
};

Well done! There it is. What more could be needed?

3 bits from each byte are unused, but only 5 are needed.

1 Like

So the only thing going on here is that the programmer is being terse? I was thinking in terms of all bits being defined, but I guess the implication is that characters on one of the 16x2 LCDs is comprised of a matrix of pixels that are (rowxcol) = 8x5 in size?

Do you mean this https://ledmatrix-editor.arduino.cc

1 Like

Yes, take a look at this close up image of a block with all pixels set:


It is 5x8 pixels.

1 Like

sonofcy, Yes I've found something similar: LCD Custom Character Generator

PaulRB, yes, the lightbulb went off when I figured out why only 5oo8 bits were being specified. I've programmed in so many languages over the years, that I tend to be explicit when coding a binary or hex constant. I consider it part of the documentation of a program and making a program understandable and modifyable by others.
Thanks again for the clarification! Means a lot.

I like this one. Lots of nice features.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.