# LCD 16x2 bar graph

**URL:** <https://forum.xod.io/t/lcd-16x2-bar-graph/1175>\
**Category:** Uncategorized\
**Created:** [September 29, 2018, 1:13pm UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175 "2018-09-29T13:13:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob99](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bob99](https://forum.xod.io/u/bob99)\
**Post date:** [September 29, 2018, 1:13pm UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/1 "2018-09-29T13:13:07Z")

</div>

Hi  
I very new to Xod but loving it, allows me to progress so much faster than just code.  
I have a program working to show the pot value on the first line of a 16x2 LCD but would like a corresponding bar graph on the second line. I have the graph working but im using the # character as the bar, how do I completely illuminate of the available 16 squares instead of using a character?  
Bob

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [September 29, 2018, 2:33pm UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/2 "2018-09-29T14:33:21Z")

</div>

If your question is “How do I light up individual spaces of an LCD?”, it can’t be done. The backlight is either on or off; you can’t light individual spaces.

Their might be a block character you could display that would more fully blacken the space than # does. Looks like numeric 255 printed as a character is probably what you want… Not sure how to do that in XOD, though.

---

<div class="post-metadata">

**Author:** ![bob99](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bob99](https://forum.xod.io/u/bob99)\
**Post date:** [September 29, 2018, 2:57pm UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/3 "2018-09-29T14:57:45Z")

</div>

Yes, thats what I mean to fully “blacken” the square.  
Thanks for the character 255 info, will look for that.  
Bob

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [October 1, 2018, 8:30am UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/4 "2018-10-01T08:30:22Z")

</div>

You should find the code page for your LCD model in its documentation. From what I see, indeed, the black square is at 255 for many encodings. To output ▮▮▮ in XOD, place `"\xFF\xFF\xFF"` in the value for `L1` or `L2`.

---

<div class="post-metadata">

**Author:** ![bob99](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bob99](https://forum.xod.io/u/bob99)\
**Post date:** [October 1, 2018, 10:34am UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/5 "2018-10-01T10:34:20Z")

</div>

Thank you nkrkv, works perfect.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 3, 2018, 10:34am UTC](https://forum.xod.io/t/lcd-16x2-bar-graph/1175/6 "2018-10-03T10:34:26Z")

</div>

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