# LED CONTROL Serial myPort vs. Serial port

**URL:** <https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [March 2, 2020, 2:51am UTC](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293 "2020-03-02T02:51:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![noahbuddy](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@noahbuddy](https://discourse.processing.org/u/noahbuddy)\
**Post date:** [March 2, 2020, 8:42am UTC](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293/2 "2020-03-02T08:42:02Z")

</div>

Serial.list() will return the **available** ports.  
As they are used up, the list would change.

Try this:

```auto
String[] availablePorts = Serial.list();

printArray(availablePorts); 

myPort = new Serial(this, availablePorts[3], 9600); 
// etc.

```

---

_[View the full topic](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293)._
