# Combining Processing Code

**URL:** <https://discourse.processing.org/t/combining-processing-code/18583>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [March 11, 2020, 2:41am UTC](https://discourse.processing.org/t/combining-processing-code/18583 "2020-03-11T02:41:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 11, 2020, 12:35pm UTC](https://discourse.processing.org/t/combining-processing-code/18583/3 "2020-03-11T12:35:08Z")

</div>

This is a related post from @kristipham those joining this topic:

> [@LED CONTROL Serial myPort vs. Serial port](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293):
>
> I am trying to control multiple LEDs but I am not quite sure on how to adjust my code accordingly. I have a master code that runs an RTC clock module and a light sensor to an LED. I have separated both my codes. I was able to control an LED simply by connecting it to ground and pin 9 on an Arduino board. After running processing for just that, I was able to turn the LED on/off. Once I tried to combine it with my master code, I believe the problem was that I am using port = new Serial(this, "/de…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/combining-processing-code/18583)._
