# New guide article: Controlling LEDs via UART

**URL:** <https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169>\
**Category:** Announcements\
**Created:** [September 26, 2018, 12:42pm UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169 "2018-09-26T12:42:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [September 26, 2018, 12:42pm UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/1 "2018-09-26T12:42:12Z")

</div>

Hello, dears!

Here is the long-awaited by many users article about communicating between two Arduino boards via UART.  
Create your own “data package” to exchange information between Arduino boards using a text-based format.

> **[Controlling LEDs via UART — Exchanging Text-based Data Between Two Boards](https://xod.io/docs/guide/uart-led-control/)**
>
> How to exchange data between two Arduino boards and how to control LEDs via UART interface.

To repeat the example you need to add the [uart-led-control](https://xod.io/libs/gabbapeople/uart-led-control/) library to your XOD workspace.

If you can’t repeat the example described in the article or you are faced with other unexpected errors, be sure to write about it on the forum. The more feedback you give us, the sooner the nodes in this library become part of the XOD libraries.

---

<div class="post-metadata">

**Author:** ![dox](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/dox/32/424_2.png) [@dox](https://forum.xod.io/u/dox)\
**Post date:** [September 27, 2018, 6:39am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/2 "2018-09-27T06:39:01Z")

</div>

Hello gabbapeople,

thanks for the tutorial! After downloading your project my soft-uart shows a red dotted line…

 ![Red](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/4e476bcbac590fd96cbe3130efcdac0c886eb13b.jpeg)

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [September 27, 2018, 7:07am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/3 "2018-09-27T07:07:10Z")

</div>

Hi! `soft-uart` has been changed since the last IDE update. Update your XOD client to the latest version.

---

<div class="post-metadata">

**Author:** ![dox](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/dox/32/424_2.png) [@dox](https://forum.xod.io/u/dox)\
**Post date:** [September 27, 2018, 7:17am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/4 "2018-09-27T07:17:49Z")

</div>

My version is 0.24.1… 🤔

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [September 27, 2018, 11:40am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/5 "2018-09-27T11:40:35Z")

</div>

Try to check your XOD workspaces.  
Be sure that `xod/uart` library is up to date.  
Or delete the xod workspace and download the latest version.

---

<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:** [September 27, 2018, 12:04pm UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/6 "2018-09-27T12:04:35Z")

</div>

To be more specific… Looks like you have a (now obsolete) fork of the `xod/uart` library. Take a look at `$HOME/xod/ __lib__ `. There should be no `xod` subfolder. I.e. no `$HOME/xod/ __lib__ /xod`. If it is there, it takes precedence over the library bundled with XOD IDE.

Simply delete the `$HOME/xod/ __lib__ /xod`

---

<div class="post-metadata">

**Author:** ![dox](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/dox/32/424_2.png) [@dox](https://forum.xod.io/u/dox)\
**Post date:** [October 1, 2018, 5:21am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/7 "2018-10-01T05:21:31Z")

</div>

Yes, that was the cause. I can’t remember if I had installed this library separately. Sometimes strange things happen… 🤨

---

<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:39am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/8 "2018-10-01T08:39:00Z")

</div>

Yes, it’s a big source of confusion. Once you make a _change_ in any standard library its fork is automatically created locally, on the next “Save All”.

There are cases when it is useful (when developing a project and several libs at the same time). But in most cases, the behavior is not obvious. We’re thinking about fixing it but leaving power-features intact at the same time.

---

<div class="post-metadata">

**Author:** ![gabbapeople](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/gabbapeople/32/1517_2.png) [@gabbapeople](https://forum.xod.io/u/gabbapeople)\
**Post date:** [October 12, 2018, 12:59am UTC](https://forum.xod.io/t/new-guide-article-controlling-leds-via-uart/1169/10 "2018-10-12T00:59:59Z")

</div>

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