Hi,
I’m brand new here in this forum and also in using processing.
So first: English is not my first language. Sorry for any mistakes or misunderstandings.
I’ve got the following problem while trying to use an Arduino Uno with processing:
My OS is Windows 10, the Arduino is connected via USB to COM1 and running the Standard Firmata, I#M using the processing IDE in Python mode.
I am not able to connect to the Arduino in Python mode. An example:
in Java mode:
import processing.serial.*;
Serial myPort; // Create object from Serial class
int val; // Data received from the serial port
void setup()
{
size(200, 200);
myPort = new Serial(this, "COM1", 57600);
}
void draw()
{
}
that works fine.
Now in Python mode:
add_library('serial')
add_library('arduino')
def setup():
a = Arduino(this, "COM1", 57600)
def draw():
pass
ends with a mistake:
UnsatisfiedLinkError: jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J
at jssc.SerialNativeInterface.openPort(Native Method)
at jssc.SerialPort.openPort(SerialPort.java:158)
at processing.serial.Serial.(Unknown Source)
at processing.serial.Serial.(Unknown Source)
at cc.arduino.Arduino.(Arduino.java:159)
and so on.
What is wrong here? I think it is a problem with the serial library in Python mode.
Can anybody help me?