# \[I want a node\] RGB LCD I2C Adafruit 5 Button shield

**URL:** <https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739>\
**Category:** Hardware Interfacing Questions\
**Created:** [January 18, 2019, 4:12pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739 "2019-01-18T16:12:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 18, 2019, 4:12pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/1 "2019-01-18T16:12:54Z")

</div>

## RGBLCDI2C-5 button shield

A short description of the node as it should be seen in the docs A five button 5 color 2x 16 or (4x 20) I2C node using library’s  
// include the library code:  
#include \<Wire.h\>  
#include \<Adafruit\_RGBLCDShield.h\>  
#include \<utility/Adafruit\_MCP23017.h\>

// These #defines make it easy to set the backlight color  
#define RED 0x1  
#define YELLOW 0x3  
#define GREEN 0x2  
#define TEAL 0x6  
#define BLUE 0x4  
#define VIOLET 0x5  
#define WHITE 0x7

### Inputs: Init,addr,rows,cols,(BL,or BL color),L1,L2,L3,L4 Similar to Gweimer LCD I2C

- `INa` (number, default=1) — the description as it should be seen in the docs
- `RST` (pulse, default=never) — the description
- …

### Outputs None

- `OUT` (number) — the description
- …

* * *

Extra info: rationale-Color is cool, the 5 button shield is very useful without occupying many pins.  
, edge-cases, details

---

<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:** [January 21, 2019, 3:15pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/2 "2019-01-21T15:15:43Z")

</div>

hi, you can try this [`cesars/rgblcd`](https://xod.io/libs/cesars/rgblcd/) , I do not have the hardware, so it’s very difficult for me to know if it works well

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 21, 2019, 7:14pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/3 "2019-01-21T19:14:07Z")

</div>

Thanks this looks like just what I am looking for. I tried to add the library and got this message “library/various has no version latest”  
I’m new at this and not sure what is wrong.

---

<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:** [January 21, 2019, 7:21pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/4 "2019-01-21T19:21:21Z")

</div>

look no problem  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/19ed65eed86a4db94a5a17327c5486c50c5035bc.png)

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 21, 2019, 7:34pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/5 "2019-01-21T19:34:03Z")

</div>

I have loaded several librarys including yours but when i load the lib cesars/rgblcd i am still getting the previous error

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 21, 2019, 7:37pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/6 "2019-01-21T19:37:06Z")

</div>

- library/various has no version latest

- library/various has no version latest

- library/various has no version latest

---

<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:** [January 21, 2019, 7:40pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/7 "2019-01-21T19:40:33Z")

</div>

Can you try another one now? I will upload a higher version, to see if it is solved v0.0.6

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/9820764910c16e436abc0bd89611dab8759c3e7c.png)

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 21, 2019, 7:59pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/8 "2019-01-21T19:59:18Z")

</div>

I am still getting the same error with cesars/rgblcd  
I was able to install your 8 bit register with no problem

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 21, 2019, 8:07pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/9 "2019-01-21T20:07:56Z")

</div>

it shows up as rev 0.0.6 after I type it in but gives the same error

---

<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:** [January 21, 2019, 8:13pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/10 "2019-01-21T20:13:53Z")

</div>

close XOD, and reopen

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 22, 2019, 1:31pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/11 "2019-01-22T13:31:15Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/619cdc4ad108c03b527fa23422bc2435a29edaaf.jpeg)

Good morning, Thank you for your help on this. I have rebooted,tried it on another computer and loaded your entire set of nodes they all loaded except The “cesars/3-digit-multiplex-7seg” and “cesars/rgblcd” The error i got for the 2 is similar but not exactly the same.  
I have included a screen shot with my cellphone sorry for the low quality. I’m not sure how to capture the XOD image

---

<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:** [January 22, 2019, 3:24pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/12 "2019-01-22T15:24:10Z")

</div>

> [@xodgod](#):
>
> “cesars/3-digit-multiplex-7seg”

This library is not working, I recommend the following of [Bitrex](https://forum.xod.io/t/rgb-lcd-i2c-adafruit-5-button-shield/1739/11)

> [@Generalized 7 segment LED display driver](https://forum.xod.io/t/generalized-7-segment-led-display-driver/1376):
>
> This is a set of patches for driving common-cathode 7 segment LED numerical display of arbitrary size from a “String” input; strings containing ASCII characters are also supported and will be more-or-less displayed within the limits of a 7 segment display. Anode lines to all segments of each digit of the digits in the display are connected to the same ports via current-limiting resistors. Cathode port selection is implemented as a variadic patch node where you drag out the box and add as many …

look for the` __lib__ ` folder inside` XOD` in `Documents`, copy this `github` folder in `cesars` folder, or another new folder.  
[https://github.com/Cesar-S/rgblcd/tree/master/rgblcd](https://github.com/Cesar-S/rgblcd/tree/master/rgblcd)

> [@xodgod](#):
>
> a screen shot with my cellphone sorry for the low quality

You can capture with `ImprPrint` key and then paste and edit in `Paint` or other software.

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 22, 2019, 6:32pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/13 "2019-01-22T18:32:20Z")

</div>

![Found%20it](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/d901e7d34de6c68ba79646501dc40584ded6f3a1.png)  
I was able to get the file from Github and loaded it but when XOD loads it gives the error but the file showed up and found the error in the color node expanded to the if-else-v, I do not have a multiple input if-else-v, the only one i have is the single input node on the image

---

<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:** [January 22, 2019, 8:14pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/14 "2019-01-22T20:14:06Z")

</div>

Sorry, that `node` is a version of mine .cpp, load the following, arranged in github you can download again

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/0537a044850e683a437f2d24e0137664954f89b7.png)

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 22, 2019, 8:34pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/15 "2019-01-22T20:34:08Z")

</div>

Thank you very much  
What is the name of that node

---

<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:** [January 22, 2019, 9:07pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/16 "2019-01-22T21:07:32Z")

</div>

gweimer/utils has an if-else-v, but I haven’t checked it against recent XOD versions.

---

<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:** [January 22, 2019, 9:22pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/17 "2019-01-22T21:22:48Z")

</div>

> [@gweimer](#):
>
> gweimer/utils has an if-else-v

yes, I committed the error of including in the library, the one that modifies in C ++, and not the original `gweimer/utils`

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 23, 2019, 5:17am UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/18 "2019-01-23T05:17:48Z")

</div>

I just do not understand how does a single if-else-v become a 7 input single output -----Scratch that  
Aha I replaced the if-else-v with the Gweimer one into the cesars/rgblcd directory and now the program can find it

no error

now i need to put it to use. I’ll keep you posted

Thanks All

---

<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:** [January 23, 2019, 3:21pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/19 "2019-01-23T15:21:01Z")

</div>

> [@xodgod](#):
>
> I just do not understand how does a single if-else-v become a 7 input single output

Inside the node there is a variadic-2

---

<div class="post-metadata">

**Author:** ![xodgod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/xodgod/32/846_2.png) [@xodgod](https://forum.xod.io/u/xodgod)\
**Post date:** [January 23, 2019, 9:02pm UTC](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739/20 "2019-01-23T21:02:12Z")

</div>

Cesar where is the I2C address of 0x20 get entered for the node

[Next page](https://forum.xod.io/t/i-want-a-node-rgb-lcd-i2c-adafruit-5-button-shield/1739.md?page=2)
