Arduino use Processing for Python


#1

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?

add_library('serial')
add_library('arduino')

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

def draw():
    pass

ty for any Help
Demian


#2

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

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

by

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

and it should work.