# Ivanmason/lcd16x2x5button/updowncount Cant get to work :(

**URL:** <https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217>\
**Category:** XOD Programming Questions\
**Created:** [August 15, 2022, 8:07pm UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217 "2022-08-15T20:07:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![louisandy](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@louisandy](https://forum.xod.io/u/louisandy)\
**Post date:** [August 15, 2022, 8:07pm UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217/1 "2022-08-15T20:07:55Z")

</div>

Hey

This should be something very simple but its driving me a little mad this node as you can see is a simple up down counter

[https://xod.io/libs/ivanmason/lcd16x2x5button/updowncount/](https://xod.io/libs/ivanmason/lcd16x2x5button/updowncount/)

It all works apart from the COUNT (number) Counting by input

My understanding was you can take what ever number you want withing reason  
(only stepping by 1000)

Every time you pulse add or subtract it will do that by the amount that you have on that input…

but it doesn’t 😔 it will only go up or down by 1 no matter what counting by input I use

any help would be great thanks

---

<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:** [August 15, 2022, 10:44pm UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217/2 "2022-08-15T22:44:01Z")

</div>

It is broken.

```auto
  ++result;

```

Should be

```auto
  result += count;

```

and

```auto
  --result;

```

Should be

```auto
  result -= count;

```

---

<div class="post-metadata">

**Author:** ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)\
**Post date:** [August 15, 2022, 11:10pm UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217/3 "2022-08-15T23:10:20Z")

</div>

Also, max and min not implemented.

Here’s a revised version of the node:  
[https://xod.io/libs/wayland/up-down-count/](https://xod.io/libs/wayland/up-down-count/)

---

<div class="post-metadata">

**Author:** ![louisandy](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@louisandy](https://forum.xod.io/u/louisandy)\
**Post date:** [August 16, 2022, 6:28am UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217/4 "2022-08-16T06:28:54Z")

</div>

Thanks for the rapid reply’s all perfect now 🙂

---

<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:** [August 18, 2022, 6:29am UTC](https://forum.xod.io/t/ivanmason-lcd16x2x5button-updowncount-cant-get-to-work/6217/5 "2022-08-18T06:29:13Z")

</div>

Closed on August 18, 2022, 6:29am UTC

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