# Arduino use Processing for Python

**URL:** https://discourse.processing.org/t/arduino-use-processing-for-python/4392
**Category:** Processing.py
**Created:** [October 12, 2018, 2:17pm UTC](https://discourse.processing.org/t/arduino-use-processing-for-python/4392 "2018-10-12T14:17:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DemianLa](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@DemianLa](https://discourse.processing.org/u/DemianLa)
#### Post date: [October 12, 2018, 2:17pm UTC](https://discourse.processing.org/t/arduino-use-processing-for-python/4392/1 "2018-10-12T14:17:06Z")

</div>

Someone have an idea how i can use this Code for Windows USB port COM1 “a = Arduino(this, ‘/dev/ttyACM1’, 57600)” this Code is for LINUX but i need it for Windows to USE Python on Arduino.  
Or somone have another Idea to use Python on Arduino?

```auto
add_library('serial')
add_library('arduino')

def setup():
    a = Arduino(this, '/dev/ttyACM1', 57600)

def draw():
    pass

```

ty for any Help  
Demian

---

<div class="post-metadata">

### Author: ![gilles33](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@gilles33](https://discourse.processing.org/u/gilles33)
#### Post date: [October 28, 2018, 12:22pm UTC](https://discourse.processing.org/t/arduino-use-processing-for-python/4392/2 "2018-10-28T12:22:39Z")

</div>

Hi,  
maybe the problem is resolved now, but just in case.  
You just have to replace this line

```auto
    a = Arduino(this, '/dev/ttyACM1', 57600)

```

by

```auto
    a = Arduino(this, 'COM1', 57600)

```

and it should work.
