error inside seial.ports() example 11_07 from the processing book I modified the int write code to work with the maple.
The button on board is the input and serial monitor shows some weird character when I hit the button and nothing when I don't it is sending one askee character as if it was a character great this is good I want to send a lot of data...
After the code it will show the processing error.
// Example 11-06 from "Getting Started with Processing"
// by Reas & Fry. O'Reilly / Make 2010
// Note: This is code for an Arduino board, not Processing
int sensorPin = 38; // Select input pin
int val = 0;
void setup() {
}
void loop() {
val = digitalRead(sensorPin); // Read value from sensor
SerialUSB.print(val, BYTE);
delay(100); // Wait 100 milliseconds
}
error to fallow I think it is because the int in a maple is 32 bits
java.lang.UnsatisfiedLinkError: /home/josheeg/Desktop/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/josheeg/Desktop/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: /home/josheeg/Desktop/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/josheeg/Desktop/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Unknown Source)
at Ex_11_07.setup(Ex_11_07.java:40)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
processing.app.debug.RunnerException: RuntimeException: Error inside Serial.ports()
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Unknown Source)
at processing.serial.Serial.list(Unknown Source)
at Ex_11_07.setup(Ex_11_07.java:40)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)