# Serial issues with apc220 and Processing 3.5.4

**URL:** https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621
**Category:** Electronics (Arduino, etc.)
**Created:** [April 10, 2020, 12:41pm UTC](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621 "2020-04-10T12:41:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JG97400](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@JG97400](https://discourse.processing.org/u/JG97400)
#### Post date: [April 10, 2020, 12:41pm UTC](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621/1 "2020-04-10T12:41:55Z")

</div>

Hello everybody !!

I’am a new user of Processing software and I try to etablish a communication between my laptop and arduino board with apc 220 wireless module. In the following link someone use the Processing 1.5.1 : [https://www.youtube.com/watch?v=ZdrfT07V0ag](https://www.youtube.com/watch?v=ZdrfT07V0ag), but the Processing 1.5.1 does’nt work anymore on my laptop. So, I want to do this with Processing 3.5.4 with the serial class but the write function does’nt work and I don’t understand why.

```auto
import processing.serial.*;

// The serial port:
Serial myPort;
void setup()
{
  // List every serial ports available:
  printArray (Serial.list ());

  // Open the port apc220:
  myPort = new Serial (this, Serial.list () [0], 9600);
}

void draw()
{
  // Send the data to apc220 via the serial communication
  myPort.write (0xAA);
  myPort.write (0x00);
  myPort.write (0xFF);
  myPort.write (0xFF);
}

```

The code above worked on Processing1.5.1 but doesn’t work on Processing 3.5.4 someone can help me please?

---

<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: [April 10, 2020, 10:58pm UTC](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621/2 "2020-04-10T22:58:10Z")

</div>

> [@JG97400](#):
>
> The code above worked on Processing1.5.1 but doesn’t work on Processing 3.5.4 someone can help me please?

It works fine here on Processing 3.5.4 on W10.  
Sending:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8cd4c908498fbcd5cda77d06654ef6d277bff915.png)  
Receiving:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e26940ce510fc6e930dc366381f8b3ac7aaec3c6.png)

I did connect to an available COM port.

`:)`
