# 4 line display PCF8574

**URL:** <https://forum.xod.io/t/4-line-display-pcf8574/2495>\
**Category:** Uncategorized\
**Created:** [August 10, 2019, 1:16am UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495 "2019-08-10T01:16:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuber](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chuber](https://forum.xod.io/u/chuber)\
**Post date:** [August 10, 2019, 1:16am UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/1 "2019-08-10T01:16:27Z")

</div>

I am totally new to XOD. I was wondering how hard it would be to extend the text-lcd-16x2-i2c Node to have 4 lines of text? I have a display that uses the same PCF8574 as the 2 line display.

---

<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 10, 2019, 1:39pm UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/2 "2019-08-10T13:39:03Z")

</div>

There are several examples in libraries, including gweimer/lcd-i2c-init to use variadic for number of lines.

---

<div class="post-metadata">

**Author:** ![chuber](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chuber](https://forum.xod.io/u/chuber)\
**Post date:** [August 10, 2019, 11:56pm UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/3 "2019-08-10T23:56:02Z")

</div>

Hey thanks for the help for the newbie (me). This looks like it will work well.

---

<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:** [August 13, 2019, 9:00am UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/4 "2019-08-13T09:00:00Z")

</div>

The next release (0.31.0) will include the nodes for 20×4 displays out of the box, in the new upcoming `xod-dev/text-lcd` library. Until that, there are other options, like @gweimer said.

---

<div class="post-metadata">

**Author:** ![g-p](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/g-p/32/1404_2.png) [@g-p](https://forum.xod.io/u/g-p)\
**Post date:** [August 27, 2019, 10:01pm UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/5 "2019-08-27T22:01:08Z")

</div>

Hi chuber.  
I had a similar need awhile back and had to modify the code for the 4x20 display here is the code from the 2x16. It works fine for both LCD screens. The issue I have is I can’t figure out how to save it as a different node. I am not a good coder but thanks to these people I can enjoy tinkering again. Then add the input terminals

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/3/30f2b414193949168eae5a9c386b5a52948c79ce.png)

---

<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:** [August 27, 2019, 11:20pm UTC](https://forum.xod.io/t/4-line-display-pcf8574/2495/6 "2019-08-27T23:20:43Z")

</div>

> [@g-p](#):
>
> The issue I have is I can’t figure out how to save it as a different node

Hi, to clone a node, and then modify it follow these steps.

1- Open the node, select all and copy.

2- Create a new node, paste the copied.

3- Save as “Multifile XOD packet” … example: `my-lib-mod` in desktop.

4- In the library there must be a file “`project.xod`” (green icon) and node folders with “patch.xod” and “patch.cpp if applicable”.

5- You can move another node folder to my-lib-xod, but there only has to be one `project.xod` file

6- You can open the `project.xod` file, edit, add other nodes and save.

7- Go to `xod/ __lib__ / "user-name" /` copy the library from the desktop (you can not always edit the library from here, without a conflict, it is better on the desktop and move or copy here).

8- To avoid losses, you can publish the library, leave it visible or hide it from the browser.
