Printing White Boxes on LCD

Now, I've seen a lot of people have problems like "My LCD only prints white boxes and I want them gone", I don't want that. I want to make the white boxes without using custom characters. Is there a way I can do this?

Welcome to the forum

Why the reluctance to use a custom character ?

I've used the max amount of custom characters on my display already

I found out how to do it. If I use
lcd.print("");
I can print a white box.

For some reason the symbol I used doesn't show up here.
If anyone else want to do this, I used a binary to text converter and wrote in 00001000. The symbol that comes out should be a questionmark in a box.
Then I copied that symbol and pasted it into lcd.print();

Edit;
Nvm, turnes out it just uses a custom char insted of printing a white box

If your 1602 or 2004 display uses the Asian character set (as most do) use
lcd.write(0xff);
to print a white box.

2 Likes

As you have discovered, using a custom character of 8 through 15 just replicates the custom characters 0 through 7. This can be convenient if you want to embed custom character 0 into a text string.

Do you have all eight custom characters being displayed at the same time? You can redefine a custom character at any time, so you can swap around custom characters that will never be used at the same time.

Thanks, but when I use it it prints a weird inverted P. Do you know what I can do to fix it?

Edit:
Turnes out that it works on my fysical LCD and not my digital one witch is realy anoying, but the digital one isn't that important.
Thanks again

Edit 2:
I wrote down all the symbols I got on the digital version, hope this helps anyone who has the same problem

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