# Simple LCD menu system

**URL:** <https://forum.xod.io/t/simple-lcd-menu-system/2216>\
**Category:** Look What I’ve Done\
**Created:** [May 7, 2019, 6:02pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216 "2019-05-07T18:02:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![microbios75](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@microbios75](https://forum.xod.io/u/microbios75)\
**Post date:** [May 7, 2019, 6:02pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/1 "2019-05-07T18:02:18Z")

</div>

**I’ve made a simple LCD menu system with the help of cesars.**

 ![Capture](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4a3e8cd3cbcb47d42e1b7145d2598a57310e28ba.png)  
[http://s000.tinyupload.com/index.php?file\_id=78643994926861395892](http://s000.tinyupload.com/index.php?file_id=78643994926861395892)  
I am using the cesars 4051 library for the multiplexers.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 8, 2019, 12:56am UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/2 "2019-05-08T00:56:59Z")

</div>

hi, when you want to upload an image, press the load icon in the bar, paste the internet address … the image will download to your pc and load in the post  
or if this is your pc, just look for the location.

you can also copy and paste from the clipboard

---

<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:** [May 8, 2019, 2:19pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/3 "2019-05-08T14:19:15Z")

</div>

Why not use nth-input node instead of multiplexer and remove the 8-page limit?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 8, 2019, 2:24pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/4 "2019-05-08T14:24:31Z")

</div>

> [@gweimer](#):
>
> Why not use nth-input

the problem with nth-input is that it consumes a lot of resources … at least in my tests

 ![D6AuN2RWwAAFb91](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/5/5ad8c9d955e946fedd19d3ff87f7e9ea4f99cf22.jpeg)

since nth-input does not have an option to enable, the difference is much

---

<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:** [May 9, 2019, 8:23pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/6 "2019-05-09T20:23:16Z")

</div>

Enable option wasn’t being used in this case…Mem savings could be significant as long as you don’t need more than 8 pages.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 9, 2019, 8:30pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/7 "2019-05-09T20:30:32Z")

</div>

several chained with nth-input is to throw without resources, but well they are not forced to use my library is more for my personal use

in terms of `enable`, I’m just saying that you have that option, do not use in the example patch

---

<div class="post-metadata">

**Author:** ![fusionfanatic](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/fusionfanatic/32/2757_2.png) [@fusionfanatic](https://forum.xod.io/u/fusionfanatic)\
**Post date:** [April 21, 2020, 3:09pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/8 "2020-04-21T15:09:10Z")

</div>

how would you add a button to go back rather than cycle through each time?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [April 21, 2020, 3:25pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/9 "2020-04-21T15:25:33Z")

</div>

use subtract, but this library needs check … it can change later

---

<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:** [April 21, 2020, 3:35pm UTC](https://forum.xod.io/t/simple-lcd-menu-system/2216/10 "2020-04-21T15:35:38Z")

</div>

Adding a button to go back is deceptively difficult in this case. The current patch uses “count” node, which doesn’t have a decrement option, or a way to specify a non-zero value to reset to.

We can fudge the decrement by changing step to -1 (via if-else feeding count-STEP), but we cannot wrap around to the high end since reset always forces to zero. You will need extra code to reset count when it gets below 0 (similar to existing code to reset when count goes too high).
