Characters from previous sketch

I've got a 16x2 LCD display with an I2C backpack.
Having created custom characters in one sketch, and then loading a completely different sketch (with no custom characters), the custom characters from the first sketch can still be called by the second.

Should this be expected, or does it indicate a possible problem?

No, it just shows that the internal RAM in the HD44780 chip has retained the data.

It will be lost if you power-cycle.

I suggest that you program any "user-defined" characters in the sketch where you intend to actually use them.

David.

I have done. I was surprised to see the old character when I used a write instead of print.
Thank

This topic was automatically closed after 120 days. New replies are no longer allowed.