Muitple HD44780 LCD displays

Status
Not open for further replies.
As I mentioned in an edit in previous post, Wondered if it is the output of the character that is bad, or maybe the character got corrupted when you did the
lcd[n].createChar(0, FILL); lcd[n].createChar(1, BLANK)

As a test, You might try displaying both of these characters at some other location and see if they have issues... But again I am only guessing...
 
Hmmmm - so I made myself a list of things to change - 1 at a time - to see if anything made a difference.
The list inlcuded adding the suggested delays at various point in the code.
I'd also read somewhere about issues with the 0th byte for custom chars.

But then whilst re-reading the recent posts - I noticed there was a slight difference in the way I'd defined the 2 arrays for the 2 custom chars.
Code:
byte FILL[8] = { 0B11111, 0B11111,  0B11111, 0B11111, 0B11111, 0B11111, 0B11111 };    //Custom char = a Filled Rectangle
byte BLANK[8] = { B00000,  B00000,  B01010,  B00100,  B01010,  B00000,  B00000,  B00000 };   //Custom char =  centered x

ie there was a leading 0 for the FILL array - but not for the BLANK array.
So first off I commonised the arrays' format to:
Code:
byte FILL[8] = { 0B11111, 0B11111,  0B11111, 0B11111, 0B11111, 0B11111, 0B11111 };    //Custom char = a Filled Rectangle
byte BLANK[8] = { [U]0[/U]B00000,  [U]0[/U]B00000,  [U]0[/U]B01010,  [U]0[/U]B00100,  [U]0[/U]B01010,  [U]0[/U]B00000,  [U]0[/U]B00000,  [U]0[/U]B00000 };   //Custom char =  centered x

..and would you believe it - I've not had a reoccurance since.

Could be a complete false dawn - but will keep testing & see what happens.

Any ideas why this would/could be the cause pls?
 
Status
Not open for further replies.
Back
Top