Page 1 of 1

More detail on bar graph characters.

Posted: Fri Apr 20, 2007 7:53 am
by thyrihad
The documentation for the LCD2041 lacks any detail of how the horizontal bar characters are made up or how the characters are used, so some questions:

1)
Is it possible to display horizontal graphs in both directions at once? uProject's demo would imply it should, but doesn't display properly (this may be a physical display error - see my other thread).
If it is possible, how are 9 bar states stored in the 8 custom characters of bank 1?

2)
In your PDF, the Initialize Horizontal Bar command states:
This command will load the default horizontal bar characters into the
volatile memory. If you have stored your own custom horizontal bar
data, use the ’Load Custom Characters’ command instead to load your
custom bar data into the volatile memory.
This implies that the "default" bar characters are unaffected by modifying custom bank 1, but this doesn't seem to be the case. Loading with this command or "Load Custom Characters" from bank 1, do the same thing. Once I've modified bank 1, there seems to be no way to get the "defaults" back.
Can I, and if so how?

3) Narrow and wide vertical bar graph characters look identical, should they?

Thank you

Posted: Fri Apr 20, 2007 2:42 pm
by Raquel
Hello thyrihad,
1)
Is it possible to display horizontal graphs in both directions at once? uProject's demo would imply it should, but doesn't display properly (this may be a physical display error - see my other thread).
If it is possible, how are 9 bar states stored in the 8 custom characters of bank 1?
No, it is not possible for horizontal graphs to be displayed in both directions. The very reason for this is what you have described: there is no way to put 9 bar states in only 8 custom characters. We have put up a PCN regarding the horizontal bars and some other items here
This implies that the "default" bar characters are unaffected by modifying custom bank 1, but this doesn't seem to be the case. Loading with this command or "Load Custom Characters" from bank 1, do the same thing. Once I've modified bank 1, there seems to be no way to get the "defaults" back.
Can I, and if so how?
Sorry for the confusion, but this is not what the PDF is saying. The 'default' per say is what has been preloaded in the banks. Once you have changed the custom characters in the banks (using the Store Custom Characters command), then the default values are gone. I will send you a script to have these default custom chars back (but these overwrite whatever you may have written). Please PM me your email address.

3) Narrow and wide vertical bar graph characters look identical, should they?
This is because with all the possible custom chars, and possible amount of data that can be stored, the narrow vertical bars share the same bank with the wide vertical bars. The script I will email you will have the values for the narrow vertical bars as well.

Best Regards,